I'm trying to debug a Perl CGI program that is executing in a Tomcat server. The program never respond but just keeps waiting for the server (the browser says "waiting from localhost..."), and the program is rather complex at about 600 lines of code. Is there any way to monitor which part of the code is executing? It's more difficult than plain Perl since it's executing from a CGI server. Thanks in advance!