Monday, October 29, 2012

Tomcat Maven Plugin Remote Debugging using Eclipse

No comments:
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 like mvn tomcat:run

step 4:

connect to port 2480 in eclipse remote debugging.

Enjoy. Happy Debugging.
--
Thank you.


Regards,
Kaleeswaran.S

Read More