Closed yyy33 closed 1 year ago
I suggest reading the doc of nvim-dap
carefully. It explains it well, much better than I can do. If you want to set up listeners, I suggest first trying to log the events using require"dap".set_log_level('DEBUG')
and see what exactly is being communicated.
I suggest reading the doc of
nvim-dap
carefully. It explains it well, much better than I can do. If you want to set up listeners, I suggest first trying to log the events usingrequire"dap".set_log_level('DEBUG')
and see what exactly is being communicated.
I have read the nvim-dap documentation and the osv documentation carefully, and I know that nvim-dap can view log records, but I didn't think to use it to troubleshoot my configuration file errors, thanks for reminding me, I found the problem, the reason is that when listening for events or commands, I should use the name that starts with lowercase instead of uppercase (Ignoring case is a good idea, I think). By the way, do you have any plans to add the ability to supportsTerminateRequest to osv?
Great, I don't really think ignoring case is a good idea. It would add complexity which is unecessary in most cases, and I'm more of the opinion the programmer should be himself "case-sensitive". This is a too ubiquitous mistake in the programming world and I really dislike case-insensitive systems personally, it feels too loose.
Thanks for for reminding me as well to add more supported capabilities. We can add a few among which supportsTerminateRequest .
Hi, When executing
Disconnect Request
orTerminate Request
in dap-client, the response or event cannot be received. I execute thedap.terminate()
method after successfully connecting to the debug adapter, but none of the listeners I set up are running properly.This is my config, Modified form @ibhagwan