How to Debug Grunt Mocha Task?

后端 未结 4 1522
名媛妹妹
名媛妹妹 2021-02-08 20:07

I am using WebStorm to run a grunt task. The debugger successfully stops at the breakpoint in the Gruntfile.js file, but not in my task file.

In the Gruntfile.js I regis

4条回答
  •  旧巷少年郎
    2021-02-08 20:54

    If you happen to use the WebStorm IDE you can set up a task and then either run or debug it.

    You can see the configuration for the command grunt jasmine_node_no_coverage in the screenshot. Please note that I installed grunt globally.

    Configuration of the task in WebStorm

提交回复
热议问题