Skip to content

debugger activation is no longer debug type specific  #37918

Description

@weinand

extracted from #33803.

Previously debuggers would activate on the onDebug:type activation event which only fires if this type of debugging is really needed (e.g. because the user runs a launch config that refers to this debug type). So, a Java debug extension would not activate if the user only works in (and debugs) a Python project.

With the new debug API it has become necessary that debug extensions are activated as soon as any debugging functionality is triggered so that they can register their "DebugConfigurationProvider" for a specific debug type. For this we have introduced a onDebug activation event.

A consequence of this is that all debug extensions are activated as soon as a launch configuration is started (independent of type). As long as activation of a debug extension is cheap this is not a problem. However, there are some debug extensions where activation triggers a language server to start up which makes the original debug operation (that triggered the activation) behave sluggish.

We should find a way to mitigate this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityon-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions