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)
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)