$dbh->trace(2); # verbose debugging output # your DBI stuff here $dbh->trace(0);