Debugging CGI scripts can be a bit of a pain sometimes.