Nov 3, 2018

Maven Debug Parameters

To debug Maven project, use the following parameters:

-Xdebug -Xnoagent -Djava.compile=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005

You can put the parameters in the IDE, or set it in Shell:

SET MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compile=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005

You can change the debug port number 5005 to other numbers, for example 8000. Then you can add a debugger client to connect to your JVM on your debug port.