connecting to remote headless DAP no longer working #27

Closed
opened 2022-12-16 12:57:46 +03:00 by marcomayer · 3 comments
marcomayer commented 2022-12-16 12:57:46 +03:00 (Migrated from github.com)

The changes in leoluz/nvim-dap-go@bd9823da22 break the remote debugging for me. I added the remote adapter to the new dap_configurations, and after starting the debugger:

dlv debug -l 127.0.0.1:38697 --api-version 2 --headless ./cmd/main.go

I get "Error on attach: Failed to attach: no debugger found". Reverting back to commit 0cc173c8, it's all fine again.

The changes in https://github.com/leoluz/nvim-dap-go/commit/bd9823da22165ea4aa7ec232e8c3a9b3158e017a break the remote debugging for me. I added the remote adapter to the new dap_configurations, and after starting the debugger: `dlv debug -l 127.0.0.1:38697 --api-version 2 --headless ./cmd/main.go` I get "Error on attach: Failed to attach: no debugger found". Reverting back to commit 0cc173c8, it's all fine again.
leoluz commented 2022-12-21 23:17:25 +03:00 (Migrated from github.com)

I suspect it might be related with the port. It is automatically assigned to a free port now. Make sure to inspect the process to get the correct port it is listening to.

I suspect it might be related with the port. It is automatically assigned to a free port now. Make sure to inspect the process to get the correct port it is listening to.
leoluz commented 2022-12-22 05:21:17 +03:00 (Migrated from github.com)

I added a new configuration to allow users to manually set the port.
Please update nvim-dap-go and add this to your configuration:

require('dap-go').setup {
  delve = {
    port = "38697",
  },
}

@marcomayer please confirm if setting the port fixes your issue.

I added a new configuration to allow users to manually set the port. Please update nvim-dap-go and add this to your configuration: ```lua require('dap-go').setup { delve = { port = "38697", }, } ``` @marcomayer please confirm if setting the port fixes your issue.
marcomayer commented 2022-12-25 21:56:28 +03:00 (Migrated from github.com)

@leoluz thanks a lot, that solves it! 🎄 🎅

@leoluz thanks a lot, that solves it! 🎄 🎅
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
NeonXP/nvim-dap-go#27
No description provided.