Two ways:
1. If you don't have an
IDE, add some <%System.out.println();%>.
2. If you have an IDE.
In
Tomcat, the system compiles jsp into $tomcat_home$/work/your_project directory. Including this directory into your IDE source directory. Then, you can set breakpoint in your IDE.