简体   繁体   中英

WebStorm debugging in Chrome

I am not able to debug my Karma unit tests in WebStorm. 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启用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). I noticed Webstorm was serving on port 63342.

在此处输入图片说明

To fix the port mismatch, I opened the chrome://extensions tab, found JetBrains IDE plugin, clicked "Options". This opened a new tab where I could adjust the port that the JetBrains IDE plugin was using. I set the port to be the same value that Webstorm was using, then I clicked Apply.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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