-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Debugger: add support for client config #3245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Delve will pick up the configuration file automatically; there's nothing for vim-go to do here. I'm not exactly sure how this works when using |
Hi, thank you for the quick reply. I think this is more of a client feature. A quick look into delve's code base shows that the client terminal is maintaining state and Even vscode-go's documentation for Moreover, it sort of makes sense because the debugger instance is capable of serving remote as well as local clients, so, it cannot keep this substitution mapping as it would not know which clients need and don't need substitution. Also, I tried what you said. Copied my local config inside the container and commented out my local config. It's not working with vim-go. Even both local and remote Correction: |
Thanks. It looks like delve does have support for this with its |
Add g:go_debug_subtitutions and hook up their use to the debugger so that binaries that are compiled at a different location than where the local source exists can be debugged. Closes fatih#3245
Add g:go_debug_subtitution_paths and hook up their use to the debugger so that binaries that are compiled at a different location than where the local source exists can be debugged. Closes fatih#3245
Add g:go_debug_subtitution_paths and hook up their use to the debugger so that binaries that are compiled at a different location than where the local source exists can be debugged. Closes fatih#3245
Add g:go_debug_subtitution_paths and hook up their use to the debugger so that binaries that are compiled at a different location than where the local source exists can be debugged. Closes fatih#3245
Add support for debugger configuration to customise parameters like
max-string-len
,max-variable-recurse
and most importantlysubstitute-path
.What did you do? (required: The issue will be closed when not provided)
Tried to use vim-go's debugger client with a headless dlv instance running inside a docker container.
Steps:
:GoDebugConnect localhost:40000
What did you expect to happen?
I was expecting that the debugger will work out of the box or it will honour
~/.dlv/config.yml
.What happened instead?
Got this error:
My understanding of this error is that vim-go passed the path of the file as it is to the debugger instance inside docker without performing any path substitutions that I had defined in
~/.dlv/config.yml
. Since the debugger inside the container has a different project path, it could not resolve the file path it received and failed to set a breakpoint.On checking vim-go's documentation further I could not find how I can configure vim-go to set any config that the delve client (or vscode-go) supports like
substitute-path
, etc.Configuration (MUST fill this out):
vim-go version:
master (edd8c16)
vimrc
you used to reproduce:This shouldn't be required as the issue should be reproducible (and is more of a feature request). Will add if required.
vimrc
Vim version (first three lines from
:version
):Go version (
go version
):Go environment
go env
Output:gopls version
gopls version
Output:dlv config
The text was updated successfully, but these errors were encountered: