On second thought, node-inspector may not be a good candidate for a script given it's a multi-step process.  Pulled from our node server doc.

One option for Node.js runtime debugging is the 'node-inspector' tool.  To use the tool do the following:

*1. Install the node-inspector (from root VWF directory).*
    
    $ npm install -g node-inspector   //global install

*2. Run node-inspector from your terminal.*
    
    $ node-inspector &

 *3. Run the node server with debug flag.*

     $ node --debug node-server.js  

     or

     $ node --debug-brk node-server.js  // to pause debugger at start    

 *4. In your browser go to [http://127.0.0.1:8080/debug?port=5858](http://127.0.0.1:8080/debug?port=5858) and use as you would with your typical browser tools.*

 Additional configuration options can be found at [https://github.com/node-inspector/node-inspector](https://github.com/node-inspector/node-inspector)