Skip to content
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

ExitedEvent versus TerminatedEvent #150

Open
rkeithhill opened this issue May 1, 2016 · 1 comment
Open

ExitedEvent versus TerminatedEvent #150

rkeithhill opened this issue May 1, 2016 · 1 comment
Labels
clarification Protocol clarification

Comments

@rkeithhill
Copy link

When should a debugger use the ExitedEvent vs the TerminatedEvent? The PowerShell debugger is launched (it doesn't support attach yet) but we are sending a TerminatedEvent at the end which apparently causes the client to send us a disconnectRequest which is a bit odd. We don't respond to this message because we are in the middle of shutting the debug host down. This results (sometimes) in a Error Canceled popup. It seems to happen when we pause/resume the debugger.

If I switch that to use the ExitedEvent we don't get the disconnectRequest message but the client pops a new error Error Debug adapter process has terminated unexpectedly. And if the program was paused and resumed it also pops up Error Canceled.

@weinand weinand self-assigned this Jun 8, 2016
@weinand weinand transferred this issue from microsoft/vscode-debugadapter-node Nov 6, 2020
@weinand weinand added the clarification Protocol clarification label Nov 6, 2020
@weinand weinand removed their assignment Nov 2, 2022
@tromey
Copy link

tromey commented Jul 27, 2023

This came up when writing the gdb DAP implementation. See https://sourceware.org/bugzilla/show_bug.cgi?id=30681. That bug came from https://sourceware.org/bugzilla/show_bug.cgi?id=30678#c1, where there's a video showing that VSCode thought the debug session was still active even after an exited event.

We're changing gdb to send both the exited event and the terminated event, but it's unclear why both are needed, and it's also unclear to me whether the terminated event ought to be sent in response to client actions like disconnect or terminate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Protocol clarification
Projects
None yet
Development

No branches or pull requests

3 participants