DEV Community

Hilton Meyer
Hilton Meyer

Posted on • Originally published at hiltonmeyer.com on

2

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)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay