Support debugging actual remote servers #129
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#129
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?
dap-goalways assumes that a localdlvinstance is running, even when theremote + attachmode is selected in the debug configuration.This currently prevents attaching to a Delve server running on a different host over TCP (including on
localhostover a secure tunnel). For instance,dap-gocurrently tries to find adlvprocess when it receives the following configuration:Instead of connecting to the host over TCP,
dap-gofails with:I work around this issue by bypassing
dap-goentirely when bothhostandportare set inremotemode:I think it is sensible. I cannot think about a good reason for attempting to find a
dlvprocess when bothhostandportare set and theremotemode is selected.Would you accept a PR to adopt this behavior in
dap-go?Is it to address the same issue as in https://github.com/leoluz/nvim-dap-go/pull/106 ? (I'm using the PR successfully with a devspace managed remote debugger).
It seems similar, although there could be valid cases for wanting to attach to a local delve server using the
remotemode but without defining a host and/or port, so hijackingremoteentirely seems extreme.