-
Notifications
You must be signed in to change notification settings - Fork 132
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
Unclear meaning of "debug session" #386
Comments
You're not the only one.
You just have to go to each and every server vendor and ask their interpretation, which differs depending on their particular interpretation.
There may be others, I've not seen them. So, in short, while I think the spec is actually very clear about what clients must do, the implementations don't actually implement that, despite the long and tedious discussion that we all had about this on the original proposal. |
this is easy to answer. You should perform the full sequence as if a completely independent debug adapter, i.e. you should send initilialze,get response, sent launch (or attach depending on the startDebugging request), and the usual breakpoints, initializationDone, etc. dance. So each "session" is completely independent. |
OK thanks. It was my first interpretation from the spec; so it looks like the spec is clear enough on what to send; what is less clear is where or how to send it; and it looks like this remain adapter-specific. |
I agree that further clarification is required in the spec, as the only 2 implementations I've seen so far don't seem to agree on its interpretation, and at least 3 independent client authors (including you and me) struggled to get them working. |
I'm trying to implement support for
startDebugging
in Eclipse LSP4E, using the dapDebugServer.js build by vscode-js-debug.But after many attempts, I didn't yet manage to figure out from the spec and the code what should be done to properly handle the
startDebugging
request.The specification mentions "debug session", but what is a "debug session" exactly? Particularly, how do I start a new "debug session"? Should I send initialized again, or send only launch; should I reuse the same connection or spawn a new debug adapter...? It would be great if the spec could clarify when does a new debug session start, and how to start one as a reaction of
startDebugging
.The text was updated successfully, but these errors were encountered: