简体   繁体   English

Chrome中的WebStorm调试

[英]WebStorm debugging in Chrome

I am not able to debug my Karma unit tests in WebStorm. 我无法在WebStorm中调试我的Karma单元测试。 How can I fix it? 我该如何解决?

I see this message when I click the debug button: 单击调试按钮时,我看到以下消息:

JetBrains IDE警报

I checked How do I know what's wrong . 我检查了我怎么知道怎么了 chrome://extensions shows: chrome:// extensions显示: 已为Chrome启用JetBrains插件

Clicking 'background page' shows: 点击“背景页”显示: Jetbrains插件背景页面

This SO question showed answers which helped me realize the solution. 这样的问题显示了答案,帮助我实现了解决方案。

The problem was that the JetBrains plugin was trying to debug on port 63343 (not sure why). 问题是JetBrains插件试图在端口63343上调试(不确定原因)。 I noticed Webstorm was serving on port 63342. 我注意到Webstorm正在端口63342上服务。

在此处输入图片说明

To fix the port mismatch, I opened the chrome://extensions tab, found JetBrains IDE plugin, clicked "Options". 为了解决端口不匹配问题,我打开了chrome:// extensions选项卡,找到了JetBrains IDE插件,然后单击“选项”。 This opened a new tab where I could adjust the port that the JetBrains IDE plugin was using. 这打开了一个新选项卡,我可以在其中调整JetBrains IDE插件正在使用的端口。 I set the port to be the same value that Webstorm was using, then I clicked Apply. 我将端口设置为与Webstorm所使用的值相同,然后单击“应用”。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM