原文作者:百万扩散性甜面包 himself65
原文链接:
为 Node.js 贡献你的力量 ———— 调试代码www.himself65.comNode.js
作为一个世界级的项目,能为它贡献源代码当然是很开心的事情。
但如果,在给 Node.js
写了新代码后,不知道如何测试代码的正确性, 将会是非常头疼的事情。
本文会着重介绍 Debug Node.js
源代码,方便你为 Node.js
献一份力。
当然,此本文也适用于
Node.js Application
项目结构
主要基本分为:
src
:JavaScript
部分lib
:C++
部分deps
: 上游C++
依赖test
: 所有的测试代码tools
: 测试工具链,主要是Python
(有Python2
)