How to debug a Nodejs project in VSC
Less than 1 minute
Debugging is the life of any developper. It allows you to check when your code doesn't behave... because you gave it the wrong instructions.
Let's dive into how to enable it in Visual Studio Code. It will be quick.
- Have a NodeJS-enabled project (for that was this one).
- Have Visual Studio Code installed.
How to enable debugging
It can be found of the official Visual Studio Code website.
Run the command to run your application, in my case:
npm run dev
You should see this:
Photo by C M on Unsplash.