in reply to How to debug CGI scripts?

If it is not too reliant on user interaction at this point, you can run it at the command line. I use this method often early on in the coding process to figure out why I get a blank screen but no crazy webserver error that tells me nothing about what went wrong.