如何在我的WebStorm工作区内进行调试? [英] How do I debug within my WebStorm workspace?

查看:178
本文介绍了如何在我的WebStorm工作区内进行调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 grunt serve 命令在 localhost:9000 上启动我的应用程序。该应用程序正在使用yeoman。我的所有节点模块和保险杠组件都已到位。我正在尝试使用内置的grunt任务运行程序 - 右键单击​​并调试服务命令。但是,它会在其他端口启动调试器。

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.

我还尝试创建运行/调试配置,但似乎没有Grunt调试选项。

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

我正在使用WebStorm 11.0.3。任何指针要做这个?

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

推荐答案

要调试您的应用程序的客户端代码,请创建一个新的JavaScript运行/调试配置。在URL字段中指定localhost:9000。单击保存,将断点放在客户端代码中并调试。

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.

这篇关于如何在我的WebStorm工作区内进行调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆