Intellij and Webstorm Debugger Built in server port differ
I have both Intellij and WebStorm installed on my Mac. I use the JavaScript debug in both however, for awhile I was having problems connecting the the JetBrain plugin. It wasn't till I noticed that the debugger port for intellij is set to 63342 and, that inWebStorm it was set to port 63343. I then examined the plugin and it was set to 63342. So, when I went into debug mode on Intellij it worked but, when I was working in WebStorm it didn't. It wasn't until I did some searching did I stumble on the reason.
It would be nice if they were both set to the same port out of the box. This issue cost me some time.
The reason I use both is that unless the project repo includes both UI and Java, I will opt for WebStorm because there is "less noise" in the IDE.
Please sign in to leave a comment.
Both WebStorm and IDEA (as well as any other Jetbrains IDE) are trying to open the default port (63342) when they start; this port is used for Chrome extension connection, as well as for different internal services. if some 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 accordingly