Archive for January 20, 2011

Turning on DBIC_TRACE from within the debugger   Leave a comment

Thanks to castaway on irc I now know how to turn on DBIC_TRACE from within a debugger session to allow me to examine what’s going on with my DBIx::Class code.

$self->result_source->storage->debug(1) # if $self is a ResultSet
$schema->storage->debug(1) # essentially what you want to do

DBIC_TRACE=1 in front of a script run has always been useful (and the new addition of DBIC_TRACE_PROFILE=console makes it more useful) but being able to turn it off and on from within a debugger session is really handy.

 

Posted January 20, 2011 by colinnewell in Programming

Tagged with

Follow

Get every new post delivered to your Inbox.

Join 32 other followers