-
Notifications
You must be signed in to change notification settings - Fork 293
How to use --inspect-brk with NODE_OPTIONS #1007
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Does However I'm not able to use the inspector through ▶▶▶ nvm use 6 ~/tmp 1s
Now using node v6.12.0 (npm v3.10.10)
▶▶▶ NODE_OPTIONS=--inspect-brk node t.js ~/tmp 1s
node: --inspect-brk is not allowed in NODE_OPTIONS is it working for you? |
@gibfahn ahh good thinking. so actually I am using so you can do:
and that flag will be passed to the node executable by ts-node, and this one works! but if I do
this one gets the
error. so maybe ts-node is spawning a child process, as you say. I am going to cross-contaminate this thread to see if I can get @blakeembrey on the line. |
I am on Node.js versions 6+
I am trying to use
NODE_OPTIONS
this is working for me:
but this isn't
NODE_OPTIONS="--inspect-brk" node foo.js
with the latter I keep getting "address is already in use" errors
any ideas?
The text was updated successfully, but these errors were encountered: