Windows 下使用 chrome 调试 Intellij 中的 Angular 应用程序

Geo*_* H. 4 debugging google-chrome intellij-idea typescript angular

我正在寻找一种在 Windows 上使用 chrome 在 intellij 中调试角度应用程序的解决方案。

目前我无法将调试器附加到 chrome。我尝试启动 chreme--remote-debugging-port=9222和许多其他解决方案。

目前我正在使用 IntelliJ 2020.2 和 Chrome 86。

有人有 windows 的解决方案吗?

Rai*_*doy 9

我使用的是 Mac,但我认为这可能对您有帮助,因为它解决了我的问题。

解决方法是转到:

设置 -> 工具 -> Web 浏览器和预览

编辑 Chrome 条目,然后输入--remote-allow-origins=*命令行选项。

脚步

参考:https://www.reddit.com/r/IntelliJIDEA/comments/120faod/comment/jdk82yz/ ?utm_source=share&utm_medium=web2x&context=3


Pra*_*uis 7

如果您遇到错误:请确保浏览器已成功启动并打开了远程调试端口。如果已启动具有相同用户数据目录的 Chrome,则无法打开端口

尝试删除此文件:

~\AppData\Roaming\JetBrains\WebStorm2020.2\options\other.xml
Run Code Online (Sandbox Code Playgroud)

如果这不起作用,除了上述之外,还删除此文件:

~\AppData\Roaming\JetBrains\WebStorm2020.2\options\web-browsers.xml
Run Code Online (Sandbox Code Playgroud)

一如既往,请记住备份您的文件。