You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gregvanl opened this issue
Jan 19, 2018
· 1 comment
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
The Debug configuration dropdown shows unsupported debug types (Python, Java) for Node.js apps.
Steps to Reproduce:
Install the Python Extension Pack which includes the Python debugger.
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.
Now install the Chrome debugger.
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.
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.
The text was updated successfully, but these errors were encountered:
This is problematic if the user selects the wrong Debug type as some extensions (C++, Python) write out a launch.json to the workspace rather than just use an in-memory version like the Node.js debugger.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded
The Debug configuration dropdown shows unsupported debug types (Python, Java) for Node.js apps.
Steps to Reproduce:
You will not see the Debug type dropdown and the session is started using the in-memory Node.js launch configuration.
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.
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.
The text was updated successfully, but these errors were encountered: