How do I debug within my WebStorm workspace?

三世轮回 提交于 2019-12-11 11:27:25

问题


I start my application on localhost:9000 using a grunt serve command. The application is using yeoman. All my node modules and bower components are in place. I am trying to use the inbuilt grunt task runner - right click and debug serve command. However, it starts the debugger in some other port.

I also tried creating run/debug configurations but that does not seem to have a Grunt debug option.

I am using WebStorm 11.0.3. Any pointers to do this?


回答1:


To debug client-side code of your app create a new JavaScript run/debug configuration. In the URL field specify localhost:9000. Click save, put the breakpoints in your client-side code and hit debug.



来源:https://stackoverflow.com/questions/36486300/how-do-i-debug-within-my-webstorm-workspace

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!