Debugging Node.js by hand can be frustrating. You could do: node debug some_script.js the_arguments, but you wouldn't want to.
Install Node Inspector Globally
npm install -g node-inspector
Please have your npm environment configured so that you don't need to use sudo npm install -g ....
Or Install Node Inspector Locally
npm install node-inspector cd ~/node_modules/node-inspector npm link
Running Node Inspector
Assuming that you have your npm environment configured, you can now do:
Run node --debug-brk path/to/some_script.js the_arguments.