Skip to content

How to check the exit status of a debug session (success or failure)? #808

Answered by mfussenegger
dasupradyumna asked this question in Q&A
Discussion options

You must be logged in to vote

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)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dasupradyumna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants