xwartz/xwartz.github.com

使用 node-inspector 调试 Node 代码

xwartz opened this issue · 0 comments

关于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"]
}