Run node.js application in debug with supervisor

James Hollingworth picture James Hollingworth · Jun 24, 2011 · Viewed 11.5k times · Source

I am using supervisor to auto-reload my node.js, e.g.

supervisor -w . app.js

However I can't work out how to get supervisor to run the node.js process in debug, e.g. the equivalent to

node --debug app.coffee

Anyone got any ideas?

Answer

Jesper picture Jesper · Apr 24, 2012

This also works (and you don't need a separate bash script):

supervisor -- --debug app.js
supervisor -- --debug=7070 app.js