grunt icon indicating copy to clipboard operation
grunt copied to clipboard

grunt options/flags for tasks | debugging mit inspector

Open friedhelm-langhof opened this issue 14 years ago • 1 comments

hello!

i am hardly looking to get the --v / verbose-flag to my tasks. i'd like to add special debug-flags to exec-commands i like to execute. does anybody know how to do it.

second question: i installed grunt globally. and i wanted to debug grunt, so i did sth like:

node --debug-brk /usr/local/bin/grunt

but since there is stuff like autodiscover its hard to get to debug to my own code. ideas?

thanks

friedhelm-langhof avatar Jul 17 '12 08:07 friedhelm-langhof

Use grunt.log.verbose.writeln(). All of the log functions have a .verbose counterpart.

git clone -b devel git://github.com/cowboy/grunt.git && cd grunt then run sudo npm link to install it globally. As you modify that copy the global will also be modified.

shama avatar Jul 23 '12 03:07 shama