Skip to content

Extension API - How to determine debug state #10077

@buehler

Description

@buehler

Dear vscode-team

I've got another question for you guys.
Is there any possibility to determine if VSCode is actually debugging?

My idea is to do something like this:

If a file changes, AND vscode is in debug mode (with f5), I want to run a certain command.

As I'm aware of, one can define a when on a key binding but is this possible from the extension API?

Cheers
Chris

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions