如何debugginggulpfile.js
为了能够debugginggulpfile.js
,执行node-inspector
的正确方法是什么?
我试过下面的代码(我的大文件中的代码需要harmony
和harmony-arrow-functions switches
):
node-debug --nodejs --harmony --nodejs --harmony-arrow-functions /home/user/.npm-packages/bin/gulp default
节点检查器已被正确加载,但不能在加载文件之前或之后在gulpfile中设置断点。 也不可能在gulp/index.js
和orchestrator/index.js
文件中设置断点。 这是不可能“步入”以下声明( 整个来源 ):
gulpInst.start.apply(gulpInst, toRun);
环境:
- Fedora 21 x64
- 节点检查器v0.9.2
- 节点v0.12.0
- 吞
- CLI版本3.8.11
- 本地版本3.8.11
它看起来像你缺less指向你的实际gulpfile.js。 尝试这样的事情:
node-debug /path/to/your/gulp/install/gulp.js --harmony --harmony-arrow-functions --gulpfile /path/to/your/gulpfile/gulpfile.js default
我用这个,它的工作原理。
- 无法debugging节点subprocess(使用节点本机debugging器)
- 如何在WebStorm中debuggingReact Express Webpack应用程序
- 如何使用Visual Studio 2013和节点工具NTVSdebuggingnode.js应用程序
- 如何debuggingeclipse中的Node.js程序(使用node-eclipse)?
- 采用100%CPU的节点API,节点刻度处理器输出看起来很神秘
- 如何debuggingGulp任务?
- VS Code nodej远程debugging
- 如何在WebStorm 10中通过Gulpfiledebugging由nodemon启动的快速应用程序?
- 无法使用节点检查器debugging匿名函数