When trying to debug nodejs with vscode like this:
$env:NODE_ENV='development'; node --inspect=34383 --debug-brk --nolazy build\api.js
I got C:\Program Files (x86)\nodejs\node.exe: bad option: --debug-brk
nodejs version: v8.0.0-nightly20170411b8f416023d
win10 x64
Pretty sure it relates to #12197. I think --inspect-brk should work with nighlies in the interim.
@Florian-R Debugger runs not in legacy mode, it uses new --inspect flag. --debug-brk means that script should break immediately after app entry poin.
--inspect-brk should be the equivalent of --inspect --debug-brk.
@gibfahn I see now, so its not bug in nodejs, but in vscode i think. Thank you, i didnt see that option change.
Most helpful comment
Pretty sure it relates to #12197. I think
--inspect-brkshould work with nighlies in the interim.