Search code examples
eclipseplayframeworkplayframework-1.x

Play 1.2.4.3: How to find currently used port for debugger?


I have several Play applications running parallel. One of them is running in Eclipse. I want to connect the Eclipse debugger (launcher "Connect JPDA to myapplication.launch"), but the port changes every time (probably due to one of the other applications blocking the default port). I would edit the launcher and enter the current port manually*, but: How would I know which port to use?

PS: As my app runs for quite a while I do not see the port initially displayed in the console anymore.

*PPS: Is there a more elegant way to handle this?


Solution

  • OK, in OS X you'll find the port in the activity monitor: Double click each "java" process until you find the one belonging to Eclipse. The requested port is the one mapped to "*".

    Click here for details (in German) and screenshots (I need 10 reputation to post images or more than two links)