Using node-inspector with Grunt tasks

后端 未结 7 1906
悲哀的现实
悲哀的现实 2020-12-04 06:20

Does someone used node-inspector with Grunt for application debugging? If not, Can you recommend a debugging tool for Grunt based apps?

I\'m working with nodejs for

7条回答
  •  情歌与酒
    2020-12-04 06:38

    Windows solution

    Run

    node --debug-brk c:\Users\username\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt taskname
    

    from cmd in the directory with your Gruntfile.js. Do not forget to put debugger; line in necessary places.

提交回复
热议问题