Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug with new node debug feature #137

Closed
toovy opened this issue Jan 18, 2017 · 4 comments
Closed

Debug with new node debug feature #137

toovy opened this issue Jan 18, 2017 · 4 comments

Comments

@toovy
Copy link

toovy commented Jan 18, 2017

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
Copy link
Contributor

jdx commented Jan 18, 2017

Does it work without foreman?

@toovy
Copy link
Author

toovy commented Jan 18, 2017

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
Copy link
Contributor

jdx commented Jan 18, 2017

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

@toovy
Copy link
Author

toovy commented Jan 18, 2017

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

@toovy toovy closed this as completed Jan 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants