作者:zhanwang | 来源:互联网 | 2023-05-19 01:33
Iamusingwebstorm10.0.2andhaveusedthebangularyeomantemplatetogenerateaproject.Icanr
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
我正在使用webstorm 10.0.2并使用bangular yeoman模板生成一个项目。我可以通过gulp窗口运行gulp命令,我可以在gulpfile.js中设置一个断点,它会点击它,但我似乎无法让它在我的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.
在我看来,gulp文件正在启动节点的另一个实例,因此当您从webstorm进行“调试”时,您只是在调试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.
我也尝试使用yo hottowel的另一个项目,但得到相同的东西 - 我无法通过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?
任何人都可以告诉我如何配置webstorm,以便我可以调试实际的服务器端节点代码,但仍然使用gulp构建工具?
2 个解决方案