Marcus Ramberg > DBIx-Class-0.05999_04 > DBIx::Class::Manual::Troubleshooting

Download:
DBIx-Class-0.05999_04.tar.gz

Annotate this POD

CPAN RT

New  15
Open  16
Stalled  12
View/Report Bugs
Source   Latest Release: DBIx-Class-0.08270

NAME ^

DBIx::Class::Manual::Troubleshooting - Got a problem? Shoot it.

"Can't locate storage blabla"

Tracing SQL

The DBIX_CLASS_STORAGE_DBI_DEBUG environment variable controls SQL tracing, so to see what is happening try

  export DBIX_CLASS_STORAGE_DBI_DEBUG=1

Alternatively use the storage-debug> class method:-

  $class->storage->debug(1);

To send the output somewhere else set debugfh:-

  $class->storage->debugfh(IO::File->new('/tmp/trace.out', 'w');

Alternatively you can do this with the environment variable too:-

  export DBIX_CLASS_STORAGE_DBI_DEBUG="1=/tmp/trace.out"
syntax highlighting: