Tomcat does not contain any special debugging tools, but you can execute Tomcat from a commercial debugger. JSP are a pain to debug for sure. My advice:
1. Use JavaBeans or other classes that can be tested independently of the JSP as much as possible.
2. Always define an error page and have it dump a stack trace.
3. For complex page layout, start with a plain HTML page that works and add JSP gradually.
4. Always view-source to see what your JSP really wrote.
Bill
------------------
author of: