Skip to content

Confusing Debug type dropdown behavior #41835

@gregvanl

Description

@gregvanl
  • VSCode Version: 1.19.2
  • OS Version: Windows 10

The Debug configuration dropdown shows unsupported debug types (Python, Java) for Node.js apps.

Steps to Reproduce:

  1. Install the Python Extension Pack which includes the Python debugger.
  2. Start a debug session on an Node.js app without a launch.json (for example a new Express app)

You will not see the Debug type dropdown and the session is started using the in-memory Node.js launch configuration.

  1. Now install the Chrome debugger.
  2. Start a new debug session for the Node.js app.

You now see the Debug type dropdown listing: Node.js, Python, Chrome.
My guess is that now that there are two possible Node.js debuggers (Node.js and Chrome), the dropdown is shown. I don't think it should show Python since it isn't appropriate. You can also reproduce this with the Java Debug extension, if installed it is also in the dropdown but only if the Chrome debugger is installed.

  1. Uninstall the Chrome debugger and the dropdown is not shown.

If VS Code can determine that the debugger isn't the correct type, we should filter it out of the list. This behavior is also confusing as I didn't understand why sometimes the dropdown was displayed when I had multiple debuggers installed and sometimes not.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions