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

Can't debug a single file in debug mode #3053

Closed
erifan opened this issue Feb 17, 2020 · 3 comments
Closed

Can't debug a single file in debug mode #3053

erifan opened this issue Feb 17, 2020 · 3 comments
Labels

Comments

@erifan
Copy link

erifan commented Feb 17, 2020

What version of Go, VS Code & VS Code Go extension are you using?

     go1.13.8 amd64 windows platform
     vscode version: 1.42.0

Describe the bug

There are two files under $GOPATH/src, both of them contain main function, I want to debug one file of them, the the launch.json file is as follow:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch file",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${file}"
        }
    ]
}

@hyangah
Copy link
Contributor

hyangah commented Feb 21, 2020

Looks like a duplicate of #1229

@stamblerre
Copy link
Contributor

Duplicate of #1229

@stamblerre stamblerre marked this as a duplicate of #1229 Feb 21, 2020
@stamblerre
Copy link
Contributor

Thanks for looking into this - I'll close in favor of that issue then.

@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants