-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dlv --continue does not work in docker #3871
Comments
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. |
|
This is a log from my docker after I started debugging, after that nothing happens. When I try to pause, it does nothing, no logs at all |
Please describe what you did to get that log and why you would expect something to happen. |
Here is the thing, when I remove "--continue" from the docker command, the program stops and waits for the debugger to connect, and then when I click "pause" the program stops and I see the call stack. |
This might simply be the legacy mode of the debug adapter not supporting |
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
dlv version
)? Version: 1.23.1go version
)? go version go1.23.3 darwin/arm64The text was updated successfully, but these errors were encountered: