Running node-inspector alongside nodemon?

Jamie Hutber picture Jamie Hutber · Sep 12, 2014 · Viewed 14.8k times · Source

I'm currently using node along with nodemon. Then I got to thinking it might be sometimes nice to use an inspector with node so have started using node-inspector

However, is it possible to run both at the same time?

Normally to run nodemon I would use:

nodemon server.js
//and similarly 
node-debug server.js

I have also tried:

nodemon --debug http.js

But sadly this didn't work either.

But both together!?

Answer

rpaskett picture rpaskett · Sep 29, 2014

If you want to run them as one command this works for me: node-inspector & nodemon --debug app.js (replacing app.js with the name of your script). If things get all mucked up you will occasionally have to kill node-inspector manually, but running the command this way gives you the option of running rs to restart nodemon manually if needed. HTH