Zen-Ventzi-Marinov
Zen-Ventzi-Marinov

Reputation: 4236

The debug type is not recognized "type": "node"

The debug type is not recognized. Make sure you've got a corresponding debug extension installed and that it is enabled.

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.

Upvotes: 9

Views: 12723

Answers (4)

Ygl
Ygl

Reputation: 121

please install the extension JavaScript Debugger (Nightly)

the "Node Debug (legacy)" extension is deprecated.

Upvotes: 1

Evandro Coan
Evandro Coan

Reputation: 9418

The fix to me was to uninstall the extension then install it back.

Upvotes: 2

electrotype
electrotype

Reputation: 8796

In case it can help someone, one day... I got this issue (april 2022). To fix it, I had to run those VSCode commands:

  1. Disable All Installed Extensions
  2. Enable All Extensions

Upvotes: 1

Zen-Ventzi-Marinov
Zen-Ventzi-Marinov

Reputation: 4236

There seem to be 2 Node Debug extensions. One that doesn't appear at first glance is "Node Debug (legacy)". The problem with my project was that it was disabled for some reason.

How I fixed it:

  1. Find "Node Debug (legacy)" extension
  2. Enable and reload vscode

Upvotes: 9

Related Questions