Friday, January 13, 2012

Debugging mvn tomcat:run on a Macintosh

I did have a hard time to figure out how remote debugging with eclipse and the tomcat-maven-plugin works on a Mac. On windows I used a script which looks like following:

set MAVEN_OPTS=-Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
mvn tomcat:run

To achieve the same thing on a Mac just change the script to following:

export MAVEN_OPTS="-Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
mvn tomcat:run

No comments:

Post a Comment