You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does foo.js spawn another process? If so the child_process will also try to start a version of the inspector, and you'll get the address in use error. Command line options don't propagate to child processes by default, environment variables do.
However I'm not able to use the inspector through NODE_OPTIONS in 6.12.0:
▶▶▶ 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
I am on Node.js versions 6+
I am trying to use
NODE_OPTIONSthis is working for me:
but this isn't
NODE_OPTIONS="--inspect-brk" node foo.jswith the latter I keep getting "address is already in use" errors
any ideas?