Chris G. Chris G. - 2 months ago 7x
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



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