为了能够调试node-inspector,执行gulpfile.js的正确方法是什么
我试过如下(我的吞咽文件中的代码需要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);环境:
发布于 2015-06-07 02:48:45
看起来,您缺少的是指向实际的gulpfile.js。试着做这样的事情:
node-debug /path/to/your/gulp/install/gulp.js --harmony --harmony-arrow-functions --gulpfile /path/to/your/gulpfile/gulpfile.js default我用这个就行了。
https://stackoverflow.com/questions/29201843
复制相似问题