KEMBAR78
Expose a `stopDebugging` API to extensions · Issue #101883 · microsoft/vscode · GitHub
Skip to content

Expose a stopDebugging API to extensions #101883

@connor4312

Description

@connor4312

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:

export function stopDebugging(session: DebugSession): Promise<void>

cc @weinand

Metadata

Metadata

Assignees

Labels

apiapi-finalizationdebugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insiderson-testplan

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions