DEV Community 👩‍💻👨‍💻

Hilton Meyer
Hilton Meyer

Posted on • Originally published at hiltonmeyer.com on

Debugging using VS Code

Debugging using VS Code is pretty simple for Node projects. If you run node --inspect-brk app.js it will start a debugging session

Debugging

Then if you use ctl+shirt+P you can toggle the auto attach which will open the session in the Debugger View

Debugging

This will then attach to the debugger

Debugging

Then just a case of adding breakpoints where you want and start stepping through the code. You don't have to leave VS Code

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.