Monday, October 29, 2012
Tomcat Maven Plugin Remote Debugging using Eclipse
I am developing a maven based web application. i am running the application with tomcat maven plugin like
mvn tomcat:run
I want to debug the application from eclipse.
Step 1:
export MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512m" which allocates 512 MB of memory.
Step 2:
export MAVEN_OPTS="-agentlib:jdwp=transport=dt_socket,address=2480,server=y,suspend=n"
Step 3:
run the application...
Subscribe to:
Posts (Atom)