strongloop / node-foreman

A Node.js Version of Foreman
http://strongloop.github.io/node-foreman/
Other
1.27k stars 119 forks source link

Debug with new node debug feature #137

Closed toovy closed 7 years ago

toovy commented 7 years ago

Node has an experimental feature to enable debugging with V8. Trying it with nf run does not work:

$ nf run node --inspect --debug-brk app.js
error: unknown option `--inspect'

So the question is: Any ideas how to solve it? Thanks in advance. BR toovy

jdx commented 7 years ago

Does it work without foreman?

toovy commented 7 years ago

This command works, starts the debugger, but my server won't start without the ENV vars set by node-foreman

$ node --inspect --debug-brk app.js
jdx commented 7 years ago

run it like this nf run node -- --inspect --debug-brk app.js

toovy commented 7 years ago

@dickeyxxx great, that works fine! Thanks a lot.