Error running 'Remote Debugger': Unable to open debugger port (localhost:5005): java.net.ConnectException "Connection refused (Connection refused)"

Viewed 14005

I am setting up remote debugger in IntelliJ on Mac. I followed the template without any modification. Then I click the "Debug xxx" button. It shows

"Error running 'Remote Debugger': Unable to open debugger port (localhost:5005): java.net.ConnectException "Connection refused (Connection refused)""

I checked the following:

  1. There is no port listening on 5005.
  2. The firewall is shut off entirely.
  3. I tried to ping localhost 5005 and the connection is refused.

I am confused. There is no firewall and no port listening. Why the connection is still refused?

1 Answers

when you run mvn spring-boot:run you need to add debug target to maven command make sure the address in the target matches the address in the remote config

Related