-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Add support for unix domain sockets and named pipes #992
Conversation
9a12000
to
bb403a3
Compare
doc/dap.txt
Outdated
@@ -76,6 +76,9 @@ The `Adapter` needs to contain a `type`, which can be one of: | |||
- `server`, to indicate that nvim-dap can connect to an already-running | |||
debug adapter via TCP. | |||
|
|||
- `pipe`, to connect to an already running debug adapter via a unix domain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it have to be already running? Doesn't the executable field in the adapter spec make this invalid?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I re-phrased it a bit to (hopefully) clarify it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful! Thanks for this 🚀
For adapters like cmake which don't support stdin or TCP Closes #924 For example: local dap = require("dap") dap.adapters.cmake = { type = "pipe", pipe = "${pipe}", executable = { command = "cmake", args = {"--debugger", "--debugger-pipe", "${pipe}"} } } dap.configurations.cmake = { { name = "Build", type = "cmake", request = "launch", } }
Nice! It also works for powershell! I think the powershell dap server has some weird way of interactive input; it wants to use the console as repl, but if I enable that setting it leads to errors. The regular repl does not return any output.
|
For adapters like cmake which don't support stdin or TCP
Closes #924
For example: