I am using webstorm 10.0.2
and have used the bangular
yeoman
template to generate a project. I can run the gulp commands via the gulp window, and I can set a breakpoint in the gulpfile.js
and it will hit it, but I can't seem to get it to hit a breakpoint in my server.js
It looks to me like the gulp file is launching another instance of node
and thus when you do "debug" from webstorm you are just debugging the gulp.
I also tried with another project using yo hottowel
but get the same thing - I am unable to debug the actual application through webstorm.
Can anybody tell me how to configure webstorm so that I can debug the actual server side node code but still use the gulp build tool?
It seems the best option is to use https://www.npmjs.com/package/gulp-node-inspector
I contacted JetBrains support back in May 2015 and their response was: