Image de l'article 'How to debug a Nodejs project in VSC'

How to debug a Nodejs project in VSC

Debugging is at the heart of software development. Enable it today in your favorite IDE.

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.

Step 1

Create a new JavaScript Debug Terminal

Step 2

Run the command to run your application, in my case:

npm run dev

You should see this:

A running debugger

Photo by C M on Unsplash.

License GPLv3 | Terms
Built with Hugo
Theme Stack designed by Jimmy