Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-existent debugger configuration #134466

Closed
TriStarGod opened this issue Oct 5, 2021 · 9 comments
Closed

Non-existent debugger configuration #134466

TriStarGod opened this issue Oct 5, 2021 · 9 comments
Assignees
Labels
author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Milestone

Comments

@TriStarGod
Copy link

TriStarGod commented Oct 5, 2021

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.60.2 (user setup)
  • OS Version: Windows 10 Pro x64

Steps to Reproduce:

  1. Click on Debug symbol
  2. Click "Run and Debug" drop down
    image

Yet my configuration only has

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "type": "pwa-node",
      "request": "launch",
      "name": "Launch Program",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "program": "${file}"
    }
  ]
}

Every project has a mysterious "Run Script: dev"

It is very similar to issue #121148 .
I tried

  1. Deleting and recreating launch.json
  2. Examined my user settings
  3. Deleting everything under C:\Users<userid>\AppData\Roaming\Code\Local Storage
@TriStarGod TriStarGod changed the title Non-existent debugger configurations Non-existent debugger configuration Oct 5, 2021
@weinand weinand added debug Debug viewlet, configurations, breakpoints, adapter issues info-needed Issue requires more information from poster labels Oct 11, 2021
@weinand
Copy link
Contributor

weinand commented Oct 11, 2021

Most likely the "Run Script: dev" launch config is a dynamic launch config contributed by some extension.
What happens if you run the config?

@TriStarGod
Copy link
Author

I tried testing it on my fastify instance with the assumption its trying to npm dev. I keep getting an error "Could not read source map for internal...." and then nodemon logs (clean exit - waiting for changes before restart). I already have a debug script that works but this option keeps popping up everywhere.

@weinand
Copy link
Contributor

weinand commented Oct 14, 2021

Does this problem occur if you disable all extensions?

@TriStarGod
Copy link
Author

TriStarGod commented Oct 14, 2021

Yes

@weinand weinand added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Oct 21, 2021
@roblourens
Copy link
Member

Check your user settings.json, do you have any launch configs under the "launch" key?

@TriStarGod
Copy link
Author

TriStarGod commented Oct 27, 2021

@roblourens Neither user or workspace settings.json have any "launch" key.

@roblourens
Copy link
Member

@connor4312 could this come from js-debug? Any other ideas?

@connor4312
Copy link
Member

Yes, this is a dynamic launch config which js-debug contributes to debug an npm script. I'm not sure why it would appear on every project, from testing and a reading of the source it should only appear when it's been used in a workspace (everything debug stores is StorageScope.WORKSPACE).

Maybe there should be a way to clear dynamic configs, however. Perhaps a 🗑️ icon in the debug quick access/quickpick?

@connor4312 connor4312 added this to the January 2022 milestone Dec 13, 2021
@weinand weinand assigned connor4312 and unassigned roblourens and weinand Jan 24, 2022
@connor4312 connor4312 added the author-verification-requested Issues potentially verifiable by issue author label Jan 24, 2022
@roblourens roblourens added the verified Verification succeeded label Jan 28, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants
@roblourens @weinand @connor4312 @TriStarGod and others