JavaScript debugger port is different on each session on macOS
I have an issue with JavaScript debugger port on macOS. In settings it is 63342, but in session it is always random.
For example:
http://localhost:62927/index.html
http://localhost:60127/index.html
Debugger works, but I need exact 63342 port for services.
Any thoughts how to solve the issue?
Please sign in to leave a comment.
Try specifying the port 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=63342Issue is still there.
Hi, I have same issue. When I start debug, Dartium connects to address, that specified in Debug configuration, then gets "302" result, that redirects it to random port like http://localhost:57224/index.html
@Arie your issue is different.
Since 2017.2 WebStorm's internal web server is not used as a proxy anymore, instead you are redirected to Pub Serve. Pub's port is random, unfortunately, it is not configured anywhere. More info in docs: https://www.jetbrains.com/help/webstorm/dart.html#dart_run_debug_web_application
A workaround is to start Pub Serve manually from the embedded Terminal (with the port you want) and set its URL in the JavaScript Debug configuration (where you currently have http://localhost:63342/specpad/web/specpad/index-loc.html).
See also https://youtrack.jetbrains.com/issue/WEB-28503
Thank you, Elena and Arie! Everything works now.
Waiting for ability to fix the port :)