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
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.
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.
Use node-debug node_modules/gulp/bin/gulp.js build
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With