You can use the node inspector to debug the node.js application that works with the wizard

I have a node.js application that can be debugged using the node inspector:

node --debug app.js 

But I want to use the wizard to run my application so that it loads the environment variables into the .env file. For example:

 foreman start 

Is there a way to run the application with a wizard, and also use a node inspector? I tried:

 foreman start --debug 

but he was out of luck.

Thanks.

+7
source share
2 answers

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

+6
source

If you are only concerned with environment variables, you can also consider using:

foreman run node --debug app.js

The run command is not exactly the same as start ; instead of launching your entire application, it only runs a command in the context of your Heroku application environment. Thus, this may or may not work depending on your situation (if you have support workers, etc.).

+3
source

All Articles