Skip to content

Commit

Permalink
docs: only use inspect at 7.x+ (#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
atian25 committed Apr 27, 2017
1 parent 394bf37 commit 9871e45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/zh-cn/core/development.md
Expand Up @@ -327,14 +327,15 @@ exports.proxyworker = {
]
}
```

由于 V8 Debugger [Legacy Protocol] 会在 Node.js 8.x 后被移除, 而替换使用的是 [Inspector Protocol]

新的协议主要有三大优势:
1. 支持非常大的 JavaScript 对象
2. 支持 ES6 Proxy
3. 支持 Source Map 更好

对于 Node.js Version >= 6.3 (Windows: >= 6.9) 我们更应该使用 [Inspector Protocol] 进行调试。
当且仅当你的 Node.js 版本大于 7.x 时,可以使用 [Inspector Protocol] 进行调试。

在上面的调试配置中需要修改一些参数来开启新协议:
- `Launch Egg` 调整参数 `"runtimeArgs": ["run", "debug"]`
Expand Down

0 comments on commit 9871e45

Please sign in to comment.