How to debug gulpfile.js

前端 未结 1 497
失恋的感觉
失恋的感觉 2021-01-12 18:38

What is the proper way to execute node-inspector in order to be able to debug gulpfile.js?

I\'ve tried following (code in my gulpfile requi

相关标签:
1条回答
  • 2021-01-12 19:33

    It looks like you're missing pointing to your actual gulpfile.js. Try something like this:

    node-debug /path/to/your/gulp/install/gulp.js --harmony --harmony-arrow-functions --gulpfile /path/to/your/gulpfile/gulpfile.js default
    

    I use this and it works.

    0 讨论(0)
提交回复
热议问题