Issues with debugger running on docker-compose target

Hey, I have issues with running debug in my tests on docker-compose target. I get different errors in different tests - only when I set breakpoint. Sometimes I get no error, but then breakpoint doesn't work.

Sample error example:
`cted fault address 0x84fc8
unexpected fault address 0x84fc8`

I'm on arm mac, and I'm using GO 1.23.3 linux/amd64 image with rosetta emulation. When I tried native linux/arm64 image, I was having errors from dlv:
`/usr/local/go/bin/go tool test2json -t /tmp/6ea30bba-b7f2-40cc-ae22-baffbbc92251/dlv --listen=0.0.0.0:61074 --headless=true --api-version=2 --check-go-version=false --only-same-user=false exec /tmp/22db92a2-b9de-4f71-8e30-8875f5f3adfa/___1TestController_SampleTest_linux.test -- -test.v -test.paniconexit0 -test.run ^\QTestController_SampleTest\E$ rosetta error: failed to open elf at /lib64/ld-linux-x86-64.so.2`

So I guess that might have something to do with it.

I'm using GoLand 2024.3.

0

Please sign in to leave a comment.