go-delve / delve

Delve is a debugger for the Go programming language.
MIT License
23.11k stars 2.15k forks source link

dlv --continue does not work in docker #3871

Open lukatendai opened 1 day ago

lukatendai commented 1 day ago

I am running my program in a docker container:

/bin/dlv --headless=true --continue --accept-multiclient --listen=:5432 --api-version=2 exec test -- api-server -a 0.0.0.0:8883 --v 5 --log os:///stderr -w TRUE

When I use vscode and try to debug, nothing happens. However, when I remove option --continue, I can successfully debug

  1. What version of Delve are you using (dlv version)? Version: 1.23.1
  2. What version of Go are you using? (go version)? go version go1.23.3 darwin/arm64
  3. What operating system and processor architecture are you using? MacOS M3
  4. What did you do? Trying to debug
  5. What did you expect to see? Process starts and I can stop at. breakpoint
  6. What did you see instead? process starts and never stops at the breakpoint
aarzilli commented 1 day ago

What do the logs say? You say "process starts and never stops at the breakpoint" but what breakpoint should it stop at? You didn't set any.