Node: Latest nodejs v8 nightly build dont have --debug-brk option

Created on 12 Apr 2017  路  4Comments  路  Source: nodejs/node

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

debugger question

Most helpful comment

Pretty sure it relates to #12197. I think --inspect-brk should work with nighlies in the interim.

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fanjunzhi picture fanjunzhi  路  3Comments

danielstaleiny picture danielstaleiny  路  3Comments

loretoparisi picture loretoparisi  路  3Comments

dfahlander picture dfahlander  路  3Comments

jmichae3 picture jmichae3  路  3Comments