Closed comicfans closed 3 months ago
seems that nvim-dap not send disconnect request, leads lldb-vscode crash at exit
I don't understand how nvim-dap is supposed to send a disconnect request if the program runs to completion by itself.
See https://microsoft.github.io/debug-adapter-protocol/overview - the section "Debug session end":
There is no indication that the client should send a disconnect when the debugger exits. And before it exits the client wouldn't know when it should sent it. A terminate/disconnect is only sent if you as user call it, to terminate the program before it has run to completion.
so if I understand correctly, when program exit by itself, nvim-dap is not responsible for sending disconnect request, and lldb-vscode should exit normally by the dap specification?
so if I understand correctly, when program exit by itself, nvim-dap is not responsible for sending disconnect request, and lldb-vscode should exit normally by the dap specification?
Yes. That's my interpretation of the spec and I'm also not aware of any other debug adapter having a problem with the current behavior.
Closing this for now but if there's any new insights that would point towards this being a client issue please let me know.
Debug adapter definition and debug configuration
installed debugger adapter: lldb-vscode from
nvim-dap config
Debug adapter version
No response
Steps to Reproduce
Expected Result
dap-repl shouldn't show crash info
Actual Result
dap.log
this problem also discussed here seems that nvim-dap not send disconnect request, leads lldb-vscode crash at exit