Node.js 24 · Debugging

Pause on the first line

Start the inspector and wait at the first line until a debugger attaches.

node --inspect-brk app.js

Official Node.js 24 documentation

More debugging commands

All debugging commands · Node.js 24 cheatsheet

Was this page helpful?