Node: Debugging Node 6 in Visual Studio Code bad option: --inspect-brk

Created on 24 May 2018  路  2Comments  路  Source: nodejs/node

  • Version: v6.11.3
  • Platform: Windows 10 64bit
  • Subsystem:


Hello,
I'm debugging a Node.js application with Visual Studio Code.
After the update of Visual Studio Code, I'm getting the following error:
bad option: --inspect-brk=18155
And after a few seconds a dialog appears:
image

Node version: v6.11.3
Visual Studio Code version: 1.23.1
Platform: Windows 10 64bit

I tried to set in my launch configuration "protocol":"legacy" but in this way sometimes the debugger gets stuck giving this error: Node.js request 'continue' failed (reason: annullato perch茅 Node.js non risponde).

Could you please help me?

Thanks in advance.

inspector question wrong repo

Most helpful comment

You can add "protocol": "legacy" to configurations for your launch.sjon.

All 2 comments

Upgrade to the latest v6.x, v6.14.2, that version knows about the --inspect-brk flag.

Can you post questions to nodejs/help next time? Cheers.

You can add "protocol": "legacy" to configurations for your launch.sjon.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

loretoparisi picture loretoparisi  路  3Comments

filipesilvaa picture filipesilvaa  路  3Comments

addaleax picture addaleax  路  3Comments

Icemic picture Icemic  路  3Comments

vsemozhetbyt picture vsemozhetbyt  路  3Comments