HiveBrain v1.2.0
Get Started
← Back to all entries
snippetjavascriptCritical

How do I debug Node.js applications?

Submitted by: @import:stackoverflow-api··
0
Viewed 0 times
applicationshowdebugnode

Problem

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?

Solution

The V8 debugger released as part of the Google Chrome Developer Tools can be used to debug Node.js scripts. A detailed explanation of how this works can be found in the Node.js GitHub wiki.

Context

Stack Overflow Q#1911015, score: 268

Revisions (0)

No revisions yet.