Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: SQL causing 500 error (was: What's Wrong With This?)

by DapperDan (Pilgrim)
on Oct 06, 2002 at 16:41 UTC ( [id://203181]=note: print w/replies, xml ) Need Help??


in reply to SQL causing 500 error (was: What's Wrong With This?)

apart from the other useful suggestions (particularly CGI::Carp's fatalsToBrowser, which is indispensable for CGI debugging IMHO), i would suggest enabling DBI's trace mode.

perldoc DBI for details, but in a nutshell you just say DBI->trace(2), changing the level (2) to taste.

at level 2 you can see how your statement was prepared, how the variables were bind-ed (bound), and what the resultant string used was. i have found this to be more than adequate debugging information for almost all DBI-related bugs i've written thus far.

HTH.

  • Comment on Re: SQL causing 500 error (was: What's Wrong With This?)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://203181]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-24 01:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found