Closed firelizzard18 closed 4 years ago
@polinasok @quoctruong I am not familiar with DAP client's expectation when during initialization - based on the log, it seems DAP client was unhappy about something after ConfigurationDoneRequest is done. Can you please take a look? (Note the use of --accept-multiclient --continue
. This is reproducible.)
@firelizzard18 Are you running the application on your local? If so, set the "remotePath": "${workspaceFolder}"
and make sure that you set breakpoints on vscode before running debug on vscode. It looks like on the debug log you provided that no breakpoint was provided.
@bulentkazanci I was not running locally, hence "host": "REDACTED"
. I'm fairly certain I had breakpoints set in the code.
Please give the nightly build a try: https://github.com/golang/vscode-go/blob/master/docs/nightly.md. We now automatically try to infer the path so you don't have to supply remotePath
at all.
Please follow the discussion on golang#45 or file a new issue if this still isn't working for you.
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Gocode -v
orcode-insiders -v
to get version of VS Code or VS Code Insidersgo env GOOS GOARCH
to get the operating system and processor architecture detailsShare the Go related settings you have added/edited
Describe the bug
When I run
dlv debug --headless --accept-multiclient --continue
, attempting to connect to it remotely does not work. I expect it to work.Steps to reproduce the behavior:
dlv debug --headless --api-version=2 --log --listen=:8181 --accept-multiclient --continue -- ARGS
dlv connect 1.2.3.4:8181
It does seem like VSCode is doing something. If I connect on the CLI, then disconnect without continuing (leaving the debugger halted), when I connect with VSCode, the debugger continues. VSCode thinks its in a debug session, but variables/watch/call stack show nothing and using VSCode to pause the process has no effect.
Configuration
Logs