最近在学习 Node.js ,发现查找错误非常难。
各位大神好有的建议吗
To facilitate error handling and debugging, rather than use callback style, use Promise (ES6) or generator-based async libraries like co.js.
10 回答11.3k 阅读
5 回答4.9k 阅读✓ 已解决
4 回答3.2k 阅读✓ 已解决
2 回答2.8k 阅读✓ 已解决
3 回答2.4k 阅读✓ 已解决
3 回答2.2k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决
debug工具会用, 比较好的有node-inspector和vscode的debug