开启调试命令
1 | node --inspect app.js |
debugger 地址
1 | //运行开启调试命令后,能看到类似如下的输出: |
在 chrome 中打开 debugger
1 | 在Chrome中打开chrome://inspect/#devices |
debugger 端口
inspect 调试默认监听 9229 端口,可以通过下面的参数指定端口
1 | --inspect=9222 |
用VSC、用webstorm啊
对不起我懒(~﹃~)~zZ
不然你想用什么调试?
1 | node --inspect app.js |
1 | //运行开启调试命令后,能看到类似如下的输出: |
1 | 在Chrome中打开chrome://inspect/#devices |
inspect 调试默认监听 9229 端口,可以通过下面的参数指定端口
1 | --inspect=9222 |
用VSC、用webstorm啊
对不起我懒(~﹃~)~zZ