JetBrains Chrome Extensions with Multiple JetBrains IDEs (WebStorm, PyCharm)
I am using PyCharm to develop a Python/Django server application together with WebStorm to develop a JavaScript/Angular2(3,4 whatever...) client application. The JetBrains Chrome Extensions only connects to PyCharm with its default port number; never Webstorm.
Documentation states "Each IDE including WebStorm has its own default port on which it starts by default." After my statutory one-hour maximum search with Dr Google etc. I have failed to find a reference to any "actual" port numbers! Doh!
The extension is therefore worthless to me. I refuse to waste my time backfilling for inadequate documentation. Can anyone at JetBrains enlighten me?
Thanks in advance and in considerable frustration/despair,
David Aspinall, Exertive Technology, Oxford, United Kingdom
Please sign in to leave a comment.
>"Each IDE including WebStorm has its own default port on which it starts by default"
it is not actually true. Default port is the same for all IDEs - 63342. Both WebStorm and PyCharm (as well as any other Jetbrains IDE) are trying to open the default port (63342) when they start; this port is used by Chrome extension, as well as by different internal services. if some JetBrains IDE is already running, this port is already bound, and the next free port (usually 63343) is used.
To avoid issues, you need to make sure that the IDE you use for JavaScript debugging is started first, before other IDEs. And, once such problem occurs, shut down both and then start the needed one. Or, change the port Chrome extension is trying to connect to in extension settings.
Note that you can specify the port explicitly to avoid using the default one. if your like to open a port different from default (63342) for debugging, it has to be specified in .vmoptions file (Help | Edit Custom VM Options - see https://intellij-support.jetbrains.com/hc/en-us/articles/206544869-Configuring-JVM-options-and-platform-properties), like
-Drpc.port=12316; make sure to change extension port accordinglyBit confused on your reply. I have both Intellij and Webstorm 2017 and I am trying to debug a React project. When I set up the JavaScript debug on webstorm it does not work and tells me I have to install the IDE but, the IDE is already installed. I then fire up my Intellij, same project, I do absolutely nothing, go to edit configurations, fire it up in debug mode and it works. Why does it not work for WebStorm 2017.2.5?
Please see my reply above - the port extension is trying to connect to (the one specified in chrome-extension://hmhgeddbohgjknpmjagkdomcpobmllji/options.html) should match the port IDE is listening on. Each IDE is trying to open the port 63342 on start; if it's occupied, the next free port is used. In your scenario, IDEA opens the port configured in extension preferences - thus debugging works. And the port opened by Webstorm is different. Normally the first started IDE 'wins' - unless you have changed the port in extension settings (to 63343, for example)
Yes but I am not running both at the same time. I started with webstorm and it hangs, I stop webstorm start up Intellij same project and it works I even kill both webstorm and the browser just to be sure noone is hanging around and holding anything. I even execute lsof -i:63342 and no one shows.
I have an out because I have both.
ok. Please provide a screenshot of chrome-extension://hmhgeddbohgjknpmjagkdomcpobmllji/options.html and idea.log files of both Webstorm and IDEA