Skip to content

Support programatically terminating a debug session #84612

@DanTup

Description

@DanTup

I'm trying to run a debug session in a pseudoterminal, and would like to terminate the debug session when the user closes the terminal (by clicking the bin icon). There's a close() event on the pseudoterminal, but as far as I can tell there is no API to tell VS Code to send a termination request.

I could add a custom request to the debug adapter, but it feels weird when there are already requests for terminating/disconnecting so it would be nice if extensions can just call them (we can programatically start the session with debug.startDebugging.

Metadata

Metadata

Assignees

Labels

apidebugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions