We use Play 2.3.x for our web application. I wanted to debug server-side code, so I did the following
steps on a windows 7 machine
1) Set the JAVA_OPTIONS to "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999"
2) On IntelliJ IDE : Run > Edit Configurations > Created a configuration with name "myserverdebug" with values ( transport : socket , debugger mode : attach , port : 9999 , host : localhost , modules class path : our project) and apply
3) Run > Debug > Select "myserverdebug"
Then an error is thrown:
Error starting ServerDebugTests: unable to open debugger port: java.net.ConnectException "Connection refused: connect **
Can someone tell me how to resolve this connection port error on Windows 7 (not Linux)?
source
share