Debugging/trace output control. Allows redirection to different filehandle, more...
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Manual / Troubleshooting.pod
CommitLineData
3b44ccc6 1=head1 NAME
2
3DBIx::Class::Manual::Troubleshooting - Got a problem? Shoot it.
ee38fa40 4
130c6439 5=head2 "Can't locate storage blabla"
ee38fa40 6
159a8515 7=head2 Tracing SQL
8
9The C<DBIX_CLASS_STORAGE_DBI_DEBUG> environment variable controls
10SQL tracing, so to see what is happening try
11
12 export DBIX_CLASS_STORAGE_DBI_DEBUG=1
13
14Alternatively use the C<storage->debug> class method:-
15
16 $class->storage->debug(1);
17
92b858c9 18To send the output somewhere else set debugfh:-
19
20 $class->storage->debugfh(IO::File->new('/tmp/trace.out', 'w');
21
22Alternatively you can do this with the environment variable too:-
23
24 export DBIX_CLASS_STORAGE_DBI_DEBUG="1=/tmp/trace.out"
159a8515 25
ee38fa40 26=cut
27