tracking down cgi errors.

David Miller justdave at syndicomm.com
Mon Jul 7 20:38:19 UTC 2003


On 7/7/2003 3:30 PM -0500, Rob Browning wrote:

> I'm still working on some trial 2.17.4 Debian packages, and I've
> gotten to the point of testing.  The package looks more or less right,
> and checksetup.pl appears happy, but when I try to load a cgi I get a
> Template::Exception.
>
> Is there any easy way to track errors like this down?  Are there more
> detailed log messages you can enable, or is there a log other than
> apache/error.log I should be looking at?

There's two things you can do:

a) Install version 2.09c or later of Template Toolkit, which has "real"
error messages instead of the "Template::Exception" generic message.

-or-

b) edit globals.pl, find "sub die_with_dignity" and uncomment the entirety
of that sub, and the $::SIG{__DIE__} trap right under it.  This will cause
any error to report an entire call stack trace instead of just the error
message (which in many cases will be printed to both the web page and the
error log).  In the case of template errors, this will spew about an entire
screen of data, and buried somewhere in the middle of it will be the real
error.
-- 
Dave Miller      Project Leader, Bugzilla Bug Tracking System
http://www.justdave.net/             http://www.bugzilla.org/



More information about the developers mailing list