What is the command to run tests in debug mode in Java?

Is there a command to use to run tests in debug mode in Java?

Hi Rahul,

You can use the below command to run the test in debug mode after putting some breakpoint in the script mvn test -Dtest=TestClassName -Dmaven.surefire.debug test