Professional Documents
Culture Documents
Aaron Zeckoski
azeckoski@gmail.com
Creative Commons AttributionNonCommercial-ShareAlike 2.5 License
Programmers Cafe
Instructions for setting up tomcat
debugging are available on the caf
website
http://bugs.sakaiproject.org/confluence/display/BOOT/
Tomcat JPDA
Java Platform Debugger Architecture
Tomcat can be configured to allow a
program such as eclipse to connect
remotely and see debugging information
Simply need to add a command line option
jpda start (possibly debug in older versions)
WIN:
set JPDA_ADDRESS=8000
set JPDA_TRANSPORT=dt_socket
bin/catalina.bat jpda start
Configuring eclipse
URL: http://confluence.sakaiproject.org/confluence/x/-qM
Click the "Connect" tab and check the box marked "Allow
termination of remote JVM"
Click "Apply" to save your changes
7
Eclipse Debugging
Lots of tutorials available online
Use google search!
In a nutshell
create breakpoints
Use the step-into, step-over, etc to navigate
through the code
Use Resume to start running code again
Disconnect to break the debug connection
Stop to shutdown tomcat
9
URL: http://confluence.sakaiproject.org/confluence/x/-qM
11
Questions?
12