Unable to open debugger port in IntelliJ
You may have to change the debugger port if your port is already used by another program. To do so:
- Run
- Edit Configurations
- Startup/Connection tab
- Debug
- Change the port here
Or, maybe in other versions:
- Run
- Edit Configurations
- Remote > Remote debug in the list on the left
- Configuration tab, Settings section
- Port: change the port here
Add the following parameter debug-enabled="true" to this line in the glassfish configuration. Example:
<java-config debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009" debug-enabled="true"
system-classpath="" native-library-path-prefix="D:\Project\lib\windows\64bit" classpath-suffix="">
Start and stop the glassfish domain or service which was using this configuration.