Grunt debugging from Webstorm

后端 未结 2 1907
小鲜肉
小鲜肉 2020-12-12 13:56

Its possible to run grunt tasks within WebStorm through external tools. However, is it possible to avail debugging with external tools? By running tasks like grunt se

2条回答
  •  抹茶落季
    2020-12-12 14:24

    I just happened to try this in WebStorm 10 today. I'm not sure if it's a new feature but WebStorm have integrated the steps described by @diego so you don't have to perform them manually:

    1. Click View > Tool Windows > Grunt to display the Grunt window in WebStorm.
    2. Right-click on any task and choose "Debug"

    You can set breakpoints etc. in Gruntfile.js just like you would any other file.

提交回复
热议问题