Closed wknclizu closed 3 weeks ago
For remote debugging, you need to start a headless delve process on the remote side. https://github.com/golang/vscode-go/wiki/debugging#remote-debugging
For remote debugging, you need to start a headless delve process on the remote side. https://github.com/golang/vscode-go/wiki/debugging#remote-debugging
The documentation mentions that there are two options for remote debugging. While the first option, headless delve, is already working correctly for me, I would now like to explore using the second option, delve dap. https://github.com/golang/vscode-go/wiki/debugging#connect-to-delve-dap-with-target-specified-at-client-start-up
The most popular setup is the first option. But you can also use the delve dap
too - just be aware of the limitations listed in the doc. I saw some users configure a task that runs a script to launch the dlv dap
process remotely and wire it as a prelaunch task of their launch config to workaround the limitation.
Hi, it sounds like this is a question that has been answered, so I'm going to close. Please comment if I'm misunderstanding.
I am encountering an issue when trying to debug my Go application using
dlv dap
. The process ID is identified, and I have set up port forwarding, but I am still getting an error when starting the debug session.Here is the relevant part of my
launch.json
configuration:I have also posted this issue on Stack Overflow with more details: link