Skip to content

Allow debugger contributions to specify filenames as well as languages to be default debugger #74671

Open

Description

@DanTup

Currently a debugger can only declare languages that it's default debugger for, but in other places where VS Code allows specifying languages, we can use filename patterns too.

Sometimes users switch to a file that is not in the language they're working on, but an additional file (for example in Dart we have pubspec.yaml and in NodeJS there's package.json). It'd be nice if you switched to package.json to change a dependency and then hit F5, it could invoke the Node JS debugger (and for pubspec.yaml, the Dart one), skipping the prompt.

"contributes": {
  "debuggers": [
    {
      "languages": [
        "dart",
        // Support something like DocumentFilter here?
        // { language: 'json', scheme: 'untitled', pattern: '**/package.json' }
        { pattern: '**/pubspec.yaml' }
      ],

Activity

  1. added
    debugDebug viewlet, configurations, breakpoints, adapter issues
    feature-requestRequest for new features or functionality
    on May 31, 2019
  2. vscodebot commented on Oct 9, 2019

    @vscodebot

    This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

    If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

    Thanks for your understanding and happy coding!

  3. weinand commented on Apr 20, 2022

    @weinand
    Contributor

    As pointed out by Danny Tuppeny (@DanTup) this feature request is most likely a prereq for #146338

  4. modified the milestones: On Deck, Backlog on Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

debugDebug 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