How do I debug Node.js applications?
Asked 07 September, 2021
Viewed 3K times
  • 47
Votes

How do I debug a Node.js server application?

Right now I'm mostly using alert debugging with print statements like this:

sys.puts(sys.inspect(someVariable));

There must be a better way to debug. I know that Google Chrome has a command-line debugger. Is this debugger available for Node.js as well?

30 Answer