[Gas] Re: debugging question

Zachary C. Miller wolfgang at wolfgang.groogroo.com
Tue Jun 5 18:01:19 CDT 2001


> Is there any way to get better error reporting on these?

Since those die's are generated by DBI/DBD rather than by Gas we don't
really have control over how they are reported. The actual SQL strings
that were generated are part of the debugging output so what I usually
do is paste those SQL commands into a command line sql interpretter
and try to figure out from that what the problem is.

DBI has a "trace()" function that you can call to create a DBI
debugging log. I've never used this before. It might be reasonable to
put code in DBManager which turns tracing on when debugging is on and
then outputs the results of the trace to the browser with the rest of
the debugging output. I'll look into implementing this later tonight.

If you need this feature before I get around to implementing it you
can always throw your own trace call into your cgi script and log
debug into to a file for later examination.

-- 
Zachary C. Miller - @= - http://wolfgang.groogroo.com/
IMSA 1995 - UIUC 2000 - Just Another Leftist Muppet - Ya Basta!
 Social Justice, Community, Nonviolence, Decentralization, Feminism,
 Sustainability, Responsibility, Diversity, Democracy, Ecology














More information about the Gas mailing list