This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 646
Can't set breakpoins in libraries when remote debugging #689
Comments
Attaching a diff that solves that for me. <edit: removed: use code below> Note: I did |
Use this instead, fixed "completely different" case: |
@f0zi Can you submit a PR with details on the problem you are trying to solve? |
Fixed by #742 |
Fixed in the latest update (0.6.54) to the Go extension. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In my launch.json I have the remotePath set to
/home/fozi/go/src/test/main
, If I set it to anything else (e.g. opening thetest
folder and remove/main
) none of the breakpoints work. The library I tested with is in/home/fozi/go/src/test/lib
, but It would be nice if this would work at the very least in anything under$GOPATH/src
(assuming it's reachable) including vendor folders. Windows (and VS Code) accessed these files on a samba share so the paths look like\\vmmachine\fozi\go\src\test\main
.I tried this in dlv command line mode directly and it seems to work fine. I think it's simply that the file name translation needs to be more sophisticated.
The text was updated successfully, but these errors were encountered: