-
Notifications
You must be signed in to change notification settings - Fork 647
Cannot Start Debugging when package is directly under gopath #1765
Comments
One idea: try launching the package rather than a single file.
Same error? |
Can you share a screenshot of that? How did you debug from the terminal? Using |
Never mind, I got it to repro. In this case This is an upstream issue. I have logged https://github.com/derekparker/delve/issues/1268 For now, try creating a sub folder and work there. |
@Ritzpak As explained in https://github.com/derekparker/delve/issues/1268#issuecomment-405441709, |
What version of Delve are you using (dlv version)?
5cd86b1
What version of Go are you using? (go version)?
go1.10.3.windows-amd64
What operating system and processor architecture are you using?
Windows Server 2016 Datacenter x64
Visual Studio Code v1.24.1 x64
What did you do?
Followed the install instructions.
What did you expect to see?
Hitting a breakpoint.
What did you see instead?
Error message: Can not debug non-main package.
I can Start Without Debugging and get my Println message so I know it compiles, but when I try Start Debugging, I get an error. I'm just getting started in Go and have only installed what is recommended so far. Not sure if there are conflicts or what. This should be extremely simple, but for some reason it won't run. I can debug with commands from the terminal, but not through the IDE.
The text was updated successfully, but these errors were encountered: