Reputation: 113
I'm looking quite a while for a solution to debug a angular app in intellij using chrome on Windows.
At the moment I'm not able to get a debugger attached to chrome. I tried starting chreme with --remote-debugging-port=9222
and a lot of other solutions.
Currently I'm using IntelliJ 2020.2 and Chrome 86.
Does anyone have a solution for windows?
Upvotes: 5
Views: 7114
Reputation: 581
I am on Mac, but I think this might be helpful for you as it resolved my issue.
The workaround is to go to:
Settings -> Tools -> Web Browsers and Preview
Edit the Chrome entry, and put --remote-allow-origins=*
in the Command line options.
Upvotes: 11
Reputation: 5076
If you're having the error: Please ensure that the browser was started successfully with remote debugging port opened. Port cannot be opened if Chrome having the same User Data Directory is already launched
Try removing this file:
~\AppData\Roaming\JetBrains\WebStorm2020.2\options\other.xml
If that didn't work, in addition to the above, remove this file:
~\AppData\Roaming\JetBrains\WebStorm2020.2\options\web-browsers.xml
As always remember to take backups of your files.
Upvotes: 7
Reputation: 93868
Please follow the steps described in Help:
npm start
to start your apphttp://localhost:4200/
or whatever it looks like)See also https://blog.jetbrains.com/webstorm/2017/01/debugging-angular-apps/
Upvotes: 0