-
Notifications
You must be signed in to change notification settings - Fork 645
Unable to map $GOPATH when debugging remotely #3177
Comments
@quoctruong @ramya-rao-a |
Moreover, the |
This is now fixed in the nightly Go build (https://github.com/golang/vscode-go). @hgl please give it a try: https://github.com/golang/vscode-go/blob/master/docs/nightly.md |
@quoctruong Thanks. Will do when time is available. How do I specify the remote $GOPATH? (Or does delve report the remote GOPATH value so there is nothing to be configured?) |
@hgl: Based on golang/vscode-go#45, it sounds like you will not have to configure the remote GOPATH. |
This looks pretty awesome. So even |
Sounds like it, but I'll let @quoctruong confirm. |
@hgl yes that’s correct. The idea is that you won’t have to specify it. |
@quoctruong I tried to test It just now, but remote debugging seems to be broken in nightly. When I clicked the green triangle to start debugging in the debug panel, the debug session would automatically close after a couple of seconds, and there is no message in debug console or output, and the I could only connect after switching to the stable version of the extension. My launch setting:
|
Is your feature request related to a problem? Please describe.
When debugging a go program living inside a docker container, I'm able to map my own source code with
remotePath
andcwd
, but I have no way to map$GOPATH
. In docker it starts with/go
, but on my host, not the case. So whenever I try to descend into a 3rd party package, I'm prompted with a file not found error.Describe the solution you'd like
Maybe another option in launch.json to map
$GOPATH
? (Or is there already one that I missed?)Since vscode should be able infer
$GOPATH
on the host, this option should only refer to remote$GOPATH
imho.The text was updated successfully, but these errors were encountered: