How to check the exit status of a debug session (success or failure)? #808
-
Similar to exit codes of commands in bash, is there any way to check the type of exit of a dap session? For example, finished successfully, terminated by user, or exited due to error / exception. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can subscribe to the various events using the extension API (':h dap-extensions') The exited, terminated event are probably of interest:
And possibly the disconnect: Note that if you invoke terminate/disconnect from the client, the client might not receive all events because it closes the connection without waiting for all events. (debug adapters may not always send them) |
Beta Was this translation helpful? Give feedback.
You can subscribe to the various events using the extension API (':h dap-extensions')
The exited, terminated event are probably of interest:
And possibly the disconnect:
Note that if you invoke terminate/disconnect from the client, the client might not receive all events because it closes the connection without waiting for all events. (debug adapters may not always send them)