go-delve / delve

Delve is a debugger for the Go programming language.
MIT License
22.82k stars 2.14k forks source link

Support request - Unix socket support when running as DAP Client #3814

Open n1lesh opened 1 week ago

n1lesh commented 1 week ago

Unix socket support was added here: https://github.com/go-delve/delve/issues/3654.

However, there's currently no way to initiate a connection from dlv dap to a server listening on a Unix socket. This feature is essential for extensions like vscode-go, which initiate a connection in reverse mode by running dlv dap with the client-addr flag and need to support Unix sockets.

I would love to hear your thoughts on this, and I’d be happy to give it a try.

aarzilli commented 1 week ago

This feature is essential for extensions like vscode-go

Considering that vscode-go has been written and support for DAP over unix sockets doesn't exist, I wouldn't use the word "essential" here.

n1lesh commented 1 week ago

@aarzilli It is essential for me to add the support for unix sockets in vscode-go. That's how I got to know dlv dap can listen on a unix socket but cannot connect to one, at least when running the dap subcommand.