How to enable remote debugging of J2EE application running on Tomcat

gamzatti
Vote 0 Votes

How to enable remote debugging of J2EE application running on Tomcat

- Change and sdd the following codes to $CATALINA_HOME/bin/startup.sh

# exec "$PRGDIR"/"$EXECUTABLE" start "$@"
export JPDA_ADDRESS=${TomcatServerIP}:8000
exec "$PRGDIR"/"$EXECUTABLE" jpda start "$@"

- Restart tomcat

- In Debug Configurations of Eclipse,
- Create new "Remote Java Application",
and set Host and Port to ${TomcatServerIP} , 8000

- Set break point and start debugging

Leave a comment

About this Entry

This page contains a single entry by gamzatti published on March 24, 2017 11:54 PM.

How to Install multipul versions of php using phpenv was the previous entry in this blog.

How to collect logs using Splunk is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.