2

I am unable to open debugger in IntelliJ IDEA 2017.2.7 and getting the error message- "Unable to open debugger port(localhost:57226):java.net.ConnectException" "Connection refused:connect"

I tried changing the port number from Run/Debug Configurations,however i am still getting the same error.

Tripti Saigal
  • 21
  • 1
  • 3
  • What Run/Debug configuration type do you use? – CrazyCoder Sep 05 '18 at 16:29
  • Please find the Run/Debug Configuration below:Debugger mode:Attach,Host:localhost ,port:5005..For JDK1.4x:-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 – Tripti Saigal Sep 06 '18 at 10:26
  • Is it Remote configuration? Did you start the process with the suggested options? Can you verify that it listens for debugger connection on the specified port and this port is not taken by some other app? Do you debug on the same machine? – CrazyCoder Sep 06 '18 at 11:20
  • Yes it is remote configuration.How do i start the process with the suggested options-pls let me know. – Tripti Saigal Sep 11 '18 at 11:01
  • Copy/paste the options suggested by IntelliJ IDEA into the command line where you start the app to enable debug mode. See also https://stackoverflow.com/a/30793101/104891. – CrazyCoder Sep 11 '18 at 18:10
  • i tried this but it still gives the same error- "Unable to open debugger port(localhost:57226):java.net.ConnectException" "Connection refused:connect" – Tripti Saigal Sep 12 '18 at 06:35
  • Check with TcpView that the app listens for the debugger on the specified port. Disable the firewall. – CrazyCoder Sep 12 '18 at 06:37

0 Answers0