xwartz / xwartz.github.com

Home Page
https://xwartz.github.com/
1 stars 0 forks source link

使用 node-inspector 调试 Node 代码 #23

Closed xwartz closed 7 years ago

xwartz commented 9 years ago

关于node-inspector 介绍就不多说了,看 https://github.com/node-inspector/node-inspector

只想提一点参数配置, 这样就不需要每次都在命令行下输入参数,这么麻烦 可以在项目根目录创建 .node-inspectorrc 文件,例如

{
  "web-port": 8081,
  "debug-port": 5858,
  "save-live-edit": true,
  "preload": false,
  "hidden": ["node_modules/"],
  "nodejs": ["--harmony"]
}