I want to use node debug to step through a gulp task.
I have tried the following:
node debug $(which gulp) protractor --specs=foo/foo-spec.js
But I get the following error:
< debugger listening on port 5858
connecting... ok
< c:\nodejs\node0.10.37-npm1.4.16-bower1.3.50-gruntcli0.1.13\gulp:2
< basedir=`dirname "$0"`
< ^
< SyntaxError: Unexpected token ILLEGAL
< at Module._compile (module.js:439:25)
Can anyone help me understand why I might be seeing this error?
I am using git bash on Windows 7.