maven surefire debug with eclipse


  1. set MAVEN_OPTS=-Dmaven.surefire.debug="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -Djava.compiler=NONE"

  2. set up a remote debug configuration in eclipse, with which the port is 8000

  3. run: mvn test

  4. run eclipse debug configuration

Comments

Popular posts from this blog