javascript - 使用 Google Chrome 在 WebStorm 中调试 JavaScript Angular 应用程序

标签 javascript angularjs google-chrome debugging webstorm

我正在尝试使用 Google Chrome 在 WebStorm 的 Angular 应用程序中调试一些 Controller 代码。

我的调试设置:

My Debug Settings

运行这些调试设置时:

1) Chorme 在任务栏中闪烁,就好像它正在尝试连接一样。

2) 我没有看到通常显示在页面顶部的调试选项卡(指示)(如褐色标题)

3) 在 WebStorm 的调试器窗口中,我收到以下消息

 "cannot connect , ensure that Web Inspector is closed "

Debugger window message

此外,我还能够使用 Chrome 开发工具调试我的代码。

知道是什么干扰了 Webstorm 的调试器连接到 Chrome 吗?

最佳答案

您是否为 chrome 安装了“JetBrains IDE 支持”扩展? 如果您的 Web 服务器在 localhost:63342 中运行,请尝试:

  1. 将 URL 参数设置为 http://localhost:63342
  2. 将你的 index.html 文件绑定(bind)到 http://localhost:63342/index.html

如果您有任何问题,请查看这篇文章,其中介绍了如何使用 Intellij 逐步调试 Angular: http://ignaciosuay.com/how-to-debug-angularjs-with-intellij/

关于javascript - 使用 Google Chrome 在 WebStorm 中调试 JavaScript Angular 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26309513/

相关文章:

javascript - 如何修复此正则表达式以删除 JSLint 不必要的转义警告?

javascript - 如何在 HTML 页面中包含 webpack 生成的文件?

javascript - AngularJS 0x800a139e - JavaScript 运行时错误 : [$injector:modulerr]

javascript - 用于结束 chrome 选项卡进程的键盘快捷方式

使用 DevTools 进行 Android Chrome 远程调试 - 无法通过待定授权

html - 谷歌浏览器 : a ridiculous float bug?

javascript - 在表单上设置规则

JavaScript - 如何正确保存 "this"的状态

javascript - 在 ng-click 上切换 Angular 属性

javascript - AngularJS:地理定位 + promise + $申请