简体   繁体   English

使用node-inspector调试Gulpfile需要很长时间才能启动

[英]Debugging Gulpfile with node-inspector takes long to start

I am trying to debug my gulp taks with node-inspector by running it like this 我试图通过运行它来节点检查器来调试我的gulp taks

node-debug $(which gulp) build

and that works, except my Gulpfile is not .js but .coffee and for some reason it hangs for almost a minute in the beginning saying: 这是有效的,除了我的Gulpfile不是.js而是.coffee并且由于某种原因它在开始时挂起了差不多一分钟说:

Requiring external module coffee-script/register 需要外部模块咖啡脚本/注册

It doesn't take that long when I run it normally and it starts node-inspector almost instantly if I use Gulpfile.js. 我正常运行它并不需要很长时间,如果我使用Gulpfile.js它几乎立即启动节点检查器。 Why is it taking too long when I use Gulpfile.coffee? 当我使用Gulpfile.coffee时为什么需要太长时间?

It's not a big deal, yet a bit annoying 这不是什么大问题,但有点烦人

使用node-debug node_modules/gulp/bin/gulp.js build

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM