Chris G. Chris G. - 1 year ago 116
Node.js Question

how to debug node.js with remote debugger in chrome or webkit

How do you debug a Node,js server running with a chrome/webkit with remote debugger.

If you have your Node running

Node --debug server.js

This gives me a port number xxxx, should I use this port number when starting chrome

Do you remote debug into it from Google\ Chrome --remote-debugging-port=xxxx

Or is the 9222 a magic port, as it is mentioned all over.

Am I on the right track, trying to start chrome with --remote-debugger into the Node.js server.js

Anything is welcome


Answer Source

Use node-inspector to remotely debug your node application from Chrome that you've started with the --debug option as you've shown.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download