Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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:

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. Why is it taking too long when I use Gulpfile.coffee?

It's not a big deal, yet a bit annoying

like image 261
iLemming Avatar asked Sep 02 '14 04:09

iLemming


People also ask

What is Gulpfile JS used for?

Gulp purely uses the JavaScript code and helps to run front-end tasks and large-scale web applications. It builds system automated tasks like CSS and HTML minification, concatenating library files, and compiling the SASS files. These tasks can be run using Shell or Bash scripts on the command line.

What is JavaScript debug Terminal?

One terminal you can select is the JavaScript Debug Terminal. It's a terminal that loads your regular shell, but if you run anything that is Node. js, it will allow you to debug it. This is super powerful and convenient. You can start an npm script, a node process, anything that starts Node.


1 Answers

Use node-debug node_modules/gulp/bin/gulp.js build

like image 90
R Pasha Avatar answered Oct 23 '22 10:10

R Pasha