Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What the best way to debug gulp plugins during developing using webstorm

I'm trying to find the best way for debug gulp plugins during developing using webstorm. I have a project example and couple gulp plugins, and I want to trace and inspect the code in webstorm right after I run gulp command in terminal. Ideally I want to add debugger statement or breakpoint inside the webstorm to trace the code execution.

like image 888
ebaranov Avatar asked Jul 15 '14 18:07

ebaranov


2 Answers

Use this guide (shameless self promotion) to setup your configurations. Then debug should just work as is.

Also, you won't need to run gulp from commandline separately, since webstorm will do that for you.

like image 72
Mrchief Avatar answered Oct 14 '22 06:10

Mrchief


this is an old question, and has an very good answer, here is another one with VS Code debugging-gulp-in-VS-Code

like image 1
Mina W Alphonce Avatar answered Oct 14 '22 06:10

Mina W Alphonce