The documentation on how to debug here: https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/#run.examples.debug says to use:

<jvmArguments>
  -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
</jvmArguments>

Since Java8, the -Xdebug support has been dropped. Ref: https://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html#BABHDABI

While it still works, the better way to do it is:

<jvmArguments>
  -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
</jvmArguments>

And via the command line:

$ mvn spring-boot:run -Dspring-boot.run.jvmArguments=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005

You also no longer need the quotes, so the "make sure to wrap that properly" comment can also be removed.

Cheers, and thanks for the awesome Spring Boot product!

Comment From: scottfrederick

Closing in favor of #39392.