Using the Go-latest.vsix
as instructed at
https://github.com/Microsoft/vscode-go/issues/1203#issuecomment-337772833
has caused my debugging not working any more -- I'm setting the break point at the first line in my main, but this is the only thing that I get (in the debug console):
ConfigurationDoneRequest
ContinueRequest
ContinueResponse
ThreadsRequest
2017/10/28 10:46:25 debugger.go:499: continuing
continue state {"Threads":null,"NextInProgress":false,"exited":true,"exitStatus":1,"When":""}
TerminatedEvent
DisconnectRequest
I.e., no break points works, and I simply cannot debug any more. Not using this Go-latest at least I can still do debugging. Is there any way I can go back?
Once again, all my own code are not under GOPATH, as I want to distinct my own code from those I get from go get
. That was the reason vscode-go
was confused about GOPATH before and it might still be the reason that my debugging is not working, because after carefully examine the debug console log, I saw:
Error on CreateBreakpoint: unknown file: /path/to/repo/gitwork/src/github.com/suntong/dnstools/cmd_probe.go
Error on CreateBreakpoint: unknown file: /path/to/repo/gitwork/src/github.com/suntong/dnstools/dnstools_main.go
All set:[null]
All set:[null]
SetBreakPointsResponse
...
However, under my normal file system, the files are just fine. E.g., both ls /path/to/repo/gitwork/src/github.com/suntong/dnstools/dnstools_main.go
and file /path/to/repo/gitwork/src/github.com/suntong/dnstools/dnstools_main.go
works just fine.