Reputation: 19308
I'm new to VS Code, and is following the official tutorial to learn how to debug. However, it just won't work. First, the UI looks different. It shows "RUN".
Compared to what the UI looks like in the video, which shows "DEBUG".
Also, I added a breakpoint and hit the green start button, it just never stops.
What should I do to make the debugger work?
Upvotes: 1
Views: 5916
Reputation: 932
You need to run node
in inspect mode.
In terminal / console, do:
node --inspect app.js
Upvotes: 1