使用 npm install -g node-inspector 命令安装 node-inspector,然后在终 端中通过 node –debug-brk=5858 debug.js 命令连接你要除错的脚本的调试服务器, 启动 node-inspector:
$ node-inspector
在浏览器中打开 http://127.0.0.1:8080/debug?port=5858
使用 npm install -g node-inspector 命令安装 node-inspector,然后在终 端中通过 node –debug-brk=5858 debug.js 命令连接你要除错的脚本的调试服务器, 启动 node-inspector:
$ node-inspector
在浏览器中打开 http://127.0.0.1:8080/debug?port=5858