0

when I run a spring-boot application with this command:

mvn spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"

and then I try to connect in debug mode with eclipse, I obtain the error:

Failed to connect to remote VM. Connection refused.
Connection refused: connect

Why?

Thanks a lot

gunixr
  • 31
  • 1
  • 3
  • See if this works for you:[Connection refused](https://stackoverflow.com/questions/975384/eclipse-error-failed-to-connect-to-remote-vm). – Alias Cartellano Sep 13 '21 at 17:35
  • 1
    Perhaps the top answer or others to [`Maven spring boot run debug with arguments`](https://stackoverflow.com/a/51513723/1744774) helps: "_The parameter name has to be prefixed with `spring-boot.` as in `-Dspring-boot.run.jvmArgument`_" – Gerold Broser Sep 13 '21 at 21:38
  • 1
    With parameter name -Dspring-boot.run.jvmArgument it works. Thx – gunixr Sep 16 '21 at 12:19

0 Answers0