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 a server side app and I have Grunt to use separated tasks (this is because users can execute tasks separately).
To run grunt in debug, you need to pass the grunt script to node explicitly:
and put a
debugger;line in your task.node-inspectorwill then open a browser with debugging tools.Edit 28 Feb 2014
node-inspectorhas added the commandnode-debug, which launches node in a--debugstate and opens the browser to thenode-inspectorpage, stopping when it hits the firstdebuggerline or set breakpoint.Edit 30 January 2015
On Windows, things are a touch more complicated. See the answer from @e.gluhotorenko for instructions.