Search code examples
javascriptnode.jsherokuforemannode-inspector

can you use node-inspector to debug a node.js app running with foreman


I have an node.js application that I can debug with node-inspector running:

node --debug app.js

But I want to use foreman to start my application so it will load environment variables in the .env file. Like so:

foreman start

Is there a way to run the app with foreman and also use node-inspector? I tried:

foreman start --debug

but didn't have any luck with that.

Thanks.


Solution

  • Why not use node --debug app.js in your Procfile