-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Expose a stopDebugging
API to extensions
#101883
Comments
IMO there are two APIs possible: A new export interface DebugSession {
/**
* Terminates the session.
*/
terminate(): Thenable<void>;
} This approach is similar to Or a new function export namespace debug {
/**
* Stop the given debug session or if no session is given stop all sessions.
*/
export function stopDebugging(session?: DebugSession): Thenable<void>;
}
@connor4312 @isidorn opinions? |
One point of confusion here is that "stop debugging" for attach configurations will send Personally I like the symmetry between |
I've released both variants of the API to proposed. @connor4312 I agree that "terminate" does not convey the semantics in a good way. And I like the symmetry between So I will push |
Proposal: Similar to the already existing export namespace debug {
/**
* Stop the given debug session or if no session is given stop all sessions.
*/
export function stopDebugging(session?: DebugSession): Thenable<void>;
}
|
The proposal makes sense to me. Making it symetric to |
Testing of the proposed API will be done in July, finalization will take place in August. |
After incorporating the feedback from the test pass the final proposed API has become this: /**
* Stop the given debug session or stop all debug sessions if session is omitted.
* @param session The [debug session](#DebugSession) to stop; if omitted all sessions are stopped.
*/
export function stopDebugging(session?: DebugSession): Thenable<void>; |
We have
vscode.debug.startDebugging
to start a debug sessions, which is quite useful.I wanted to write some tests for teardown behavior of js-debug, and when trying to do so I ran into the problem that there's no equivalent
stopDebugging
API. I could manually send some "terminate" request, but this doesn't cover the full scenario as effectively.I'd like to propose the addition of a simple new API:
cc @weinand
The text was updated successfully, but these errors were encountered: