grunt-debug
A grunt task to enable debugging for any subsequent tasks.
Usage
Ensure you have the debug plugin enabled in your Gruntfile via:
grunt;
Then you can debug a series of grunt tasks (say tasks named first
and second
) by running:
grunt debug first second
Or, to immediately pause the script after launching:
grunt debug:break first second
Options
-
fork : Boolean
If enabled, spawns a new Grunt process with debugging enabled via Node's
--debug
parameter. Otherwise, debugging will be enabled on the current process using theSIGUSR1
signal. Defaults tofalse
. -
debugChildren : Boolean
If enabled, automatically starts debugging for child node processes created using
fork
orspawn
commands. Defaults totrue
. -
inspector : Boolean
If enabled, launches an instance of node-inspector for interactive debugging. In order to use this option, your parent project must declare a version of
node-inspector
in its dependencies. Defaults tofalse
. -
inspectorArgs : Object
A map of argument values to use when launching
node-inspector
. (Only applicable wheninspector
is set totrue
.) Defaults to{}
.