-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debug: allow debugging outside GOPATH without a go.mod
Do not try to determine the package name being debugged. Delve supports debugging and testing without specifying a package name; vim-go should, too. One of the things that this makes easier is debugging code that is neither in GOPATH nor in a module. Remove unnecessary is_test key from the state dictionary. Remove code that set the current directory when debugging tests. Because delve is started as an async job, its cwd will be set to the directory of the buffer from which debugging is started, anyway. Using `lcd` to set the buffer local directory is just another thing to keep track of and it doesn't seem to have any real benefit. Update documentation to explain how relative paths work for `:GoDebug` and `:GoDebugTest`. Refactor go#package#FromPath so that it returns -2 when the package is neither in GOPATH nor in the current module.
- Loading branch information
Showing
3 changed files
with
26 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters