Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Unable to map $GOPATH when debugging remotely #3177

@hgl

Description

@hgl

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 and cwd, 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions