-
Notifications
You must be signed in to change notification settings - Fork 645
Unable to create break points when remote debugging unless using lldb backend #2169
Comments
Well, I managed to solve my problem by setting the dlv backend to lldb and made some changes to the launch.json Command:
Launch.json
|
In the launch.json file,
So the changes you made are in line with the above. About lldb, I am not sure why that would make a difference... I would be interested to know if things work when you use api version 2, keep the changes in the launch.json and not provide the |
Thanks for replying. I've tried many times without "--backend", unfortunately resulted in the some. My dlv version is:
I'm running VS Code on Windows 10 Pro and the target platform is Ubuntu 16.04 LTS. The target program is pilot-discovery component of Istio. Both side of dlv installed the same version. |
@derekparker, @aarzilli This is a case of running the dlv headless on an ubuntu machine and attaching to it on a Windows machine using VS Code. Any idea why the --backend should be set to lldb here? |
I'd like to see the output of |
Sorry keep you waiting. Here is all I've got. @aarzilli The log tells there is no file in: /home/sefler/mygo/src/istio.io/istio/mixer/pkg/api/grpcServer.go:133 But when backing with lldb, as the picture shows, the file can be found. |
I don't see a CreateBreakpoint request in the log you posted at all. All I see is VSCode requesting a list of all goroutines and then (probably) shutting down the receive end of the socket. This is the exchange truncated to 160 columns per line:
so far this looks like a problem on VSCode's side. |
Never mind, I see that you posted the wrong long and edited the message. It's very strange that you are getting that message on the native backend but not on with the lldb backend. That error shouldn't really depend on the backend at all. Even stranger is that you say that it works with gdlv. I'm not sure what to make of this. Maybe also post the same log but with |
I'm terribly sorry that the whole development environment has been lost. I'm using Hyper-V to experience the Istio, but last day the machine state went wrong(it was stuck at initiation phase) and could not work anymore. I've tried to make recovery but in vain. Thank you for being active for this issue. Because I can not provide any further information at present, I think you can mark this issued as closed. If encountered the same problem again, I will mark it again. Thanks, again! |
Thanks @seflerZ |
If you have a question, please ask it on https://gitter.im/Microsoft/vscode-go or on the VSCode channel in Gophers Slack(https://invite.slack.golangbridge.org/)
If you have issues around GOPATH, read https://github.com/Microsoft/vscode-go/wiki/GOPATH-in-the-VS-Code-Go-extension first.
If you have issues debugging your Go programs
"trace": "verbose"
and share the resulting logs in the debug consoleIf this is a bug report, please share
Steps to Reproduce:
Remote run "dlv --headless --listen 0.0.0.0:30010 attach 239910 --log" which 239910 is the target process id
Local VS Code launch.json:
Press "Start Debugging" button and the VS Code says connected, but nothing shows in the "DEBUG CONSOLE"
Create any break points result in no response at all
Unable to add break points after waiting. The verbose logs are:
9:44:30 PM, 12/3/2018
InitializeRequest
InitializeResponse
Using GOPATH: C:\Users\Sefler Zhou\go
InitializeEvent
ConfigurationDoneRequest
ContinueRequest
ContinueResponse
SetBreakPointsRequest
All cleared
Creating on: C:\Users\Sefler Zhou\go\src\istio.io\istio\pilot\pkg\config\kube\crd\controller.go (C:/Users/Sefler Zhou/go/src/istio.io/istio/pilot/pkg/config/kube/crd/controller.go) :221
By using "gdlv" it works fine so my remote dlv API server should probably be well configured.
The text was updated successfully, but these errors were encountered: