The "remote" example from the README doesn't appear to work #105
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
NeonXP/nvim-dap-go#105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From the README:
So I tried to connect to a running
dlv dap, and it connects alright (after I hard-code the port), but then immediately I get thatdlv exits with code 1. After readingnvim-dapdocs, I figure this is due to the following:leoluz/nvim-dap-go@6aa88167ea/lua/dap-go.lua (L69-L81).As it turns out, if an
executableattribute is set,mfussenegger/nvim-dapwill spawn that executable, even whenrequest = "attach". This is incognruent withmode = "remote". Docs:mfussenegger/nvim-dap@580d6e5263/doc/dap.txt (L76-L78).So I fixed my problem by commenting out that
executablesection. It'd probably make sense to make thisexecutablesection depend on whether or notmode == "remote".I've opened an PR to fix this, just waiting for review and merge.
I think think it's related, but I struggle to connect to a debugger server in general.
I try config:
and it gives me "Failed to attach: no debugger found".
I tried the branch of @Nalum, didn't work for me.
I guess I just have a wrong config, right?
the dap port is exposed from a local docker image, I can connect from jetbrains, so the debugger server itself is correct for sure.
I found an issue, the port value is ignored from vscode config and is taken from
dap.adapters.goThis issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I can confirm this problem is still happening, I think this issue should be reopened.
Meanwhile I'm using @nalum solution which works great.