“node --debug” and “node --debug-brk” are invalid

前端 未结 6 1984
我在风中等你
我在风中等你 2021-02-14 02:21

I have updated the node (v8.1.2). When I want to debug my previous test project in nodejs using NTVS (in visual studio 2017) I\'ve gotten the following error:

6条回答
  •  一向
    一向 (楼主)
    2021-02-14 02:31

    You can use Chrome's DevTools to debug as below:

    1. Start Node with --inspect option ... e.g. $node --inspect app.js. You should see a console printout something like

      Debugger listening on ws://127.0.0.1:9229/2558baab-1141-4db3-8d10-771586f876a6

    2. Open Chrome browser and browse to chrome://inspect. Click on "Open dedicated DevTools for Node" link.

提交回复
热议问题