javascriptnode.jsnode-inspectornodemon

Running node-inspector alongside nodemon?


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!?


Solution

  • You would start your server with nodemon --debug server.js and then you'll need to run node-inspector in a separate terminal window unless you push nodemon to the background.