-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
"type": "node" - The debug type is not recognized. #51572
Comments
@zenVentzi how does your debug configuration (launch.json) look like? It don't understand what you mean by "Node Debug build in extension is enabled" |
Same problem here. The Node Debug extension seems to be broken. |
@erihanse please provide reproducible steps. Please note that the VS Code 1.23.1 is out since beginning of May and there have been no reports of this issue since. |
I was following these steps: https://code.visualstudio.com/docs/nodejs/nodejs-tutorial When I came to the point where I was starting to debug (Debugging Hello World), a launch.json was created with following content:
I wasn't prompted for what environment to use for debugging (like python, java or Node.js).
a green squiggly line is underneath "node", saying |
@erihanse It would be helpful if you could add a screenshot showing the VS Code window with the error squiggly in the debug configuration. Thanks! |
There are quite many, they don't all fit on the same screen. Will this output do?
|
The "node-debug2" looks outdated: 1.18.4 instead of 1.23.x. Try to remove it from VS Code. If the problem persist, try to disable all extensions. |
Before reinstalling try to remove the bogus node-debug2 extension from your extension folder.
|
@erihanse the two last screenshots show the extensions available on the Marketplace, not what you have loaded on your system or inside VS Code. So the version numbers you are seeing are out of your control. If you want to see what is built-into VS Code or what you have installed on top of it, please use the queries from the extension menu: |
BTW, what version of VS Code are you using? |
Oh okay, think my memory got mixed up. I'm running 1.24.0 as of today. Haven't really done any development with the extension for half a year, so all I can say is that it worked then. |
I tried uninstalling and installing again, to no avail. |
Please excuse me for my late reply! I got it fixed though. It seems that there are 2 node debug extensions. Node Debug and Node Debug (legacy). The problem was that the (legacy) node debug extension was disabled. How I fixed it:
|
Oh, that explains it. |
How is this closed? I'm still experiencing the same symptoms with newer VSCode. Node Debug (legacy) is disabled from factory. If it's integral to the node debugging facilities in VSCode, why disable it from the factory? |
@brokenthorn No, "Node Debug (legacy)" is not disabled from factory. |
vscode v. 1.23.1
node v. 7.9.0
windows 10
Node Debug build in extension is enabled. Restarted vscode multiple times to no avail. It used to work just up until yesterday, not sure what much has changed to cause that "not recognized" warning. Also, it doesn't appear when clicking the Add Configuration... button.
The text was updated successfully, but these errors were encountered: