javascript - Using node-inspector with Grunt tasks -
does used node-inspector grunt application debugging? if not, can recommend debugging tool grunt based apps?
i'm working nodejs server side app , have grunt use separated tasks (this because users can execute tasks separately).
thanks in advance
to run grunt in debug, need pass grunt script node explicitly:
node-debug $(which grunt) task and put debugger; line in task. node-inspector open browser debugging tools.
edit 28 feb 2014
node-inspector has added command node-debug, launches node in --debug state , opens browser node-inspector page, stopping when hits first debugger line or set breakpoint.
edit 30 january 2015
on windows, things touch more complicated. see answer @e.gluhotorenko instructions.
Comments
Post a Comment