1.在Chrome打开chrome://flags/#enable-devtools-experiments
2.激活Developer Tools experiments
3.重启Chrome
4.调试模式执行js
node --inspect-brk server.js
5.打开Chrome开发者工具,点击左上角绿色按钮(Open dedicated DevTools for Node.js)
2021-09-07 00:20:33
1.在Chrome打开chrome://flags/#enable-devtools-experiments
2.激活Developer Tools experiments
3.重启Chrome
4.调试模式执行js
node --inspect-brk server.js
5.打开Chrome开发者工具,点击左上角绿色按钮(Open dedicated DevTools for Node.js)