X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FDebugging.pod;fp=lib%2FCatalyst%2FManual%2FTutorial%2FDebugging.pod;h=fe78ff2752663562b30b866d245a0b8ba8b9bc92;hp=22d72868b87c1eb827b89ef9eeba221e40099e13;hb=3b1fa91be1d89d2297aa9e8e83462344d9cd9820;hpb=325bc0fd9f3c14fc336ddc74fdaa42e18aa3b4fe diff --git a/lib/Catalyst/Manual/Tutorial/Debugging.pod b/lib/Catalyst/Manual/Tutorial/Debugging.pod index 22d7286..fe78ff2 100644 --- a/lib/Catalyst/Manual/Tutorial/Debugging.pod +++ b/lib/Catalyst/Manual/Tutorial/Debugging.pod @@ -128,7 +128,7 @@ you can obviously indent them if you prefer): # Retrieve all of the book records as book model objects and store in the # stash where they can be accessed by the TT template - $c->stash->{books} = [$c->model('DB::Books')->all]; + $c->stash->{books} = [$c->model('DB::Book')->all]; # Set the TT template to use. You will almost always want to do this # in your action methods. @@ -140,6 +140,10 @@ encountered (it has no effect when Perl is run without the C<-d> flag). B The C here is the Perl Debugger, not the DB model. +If you haven't done it already, enable SQL logging as before: + + $ export DBIC_TRACE=1 + To now run the Catalyst development server under the Perl debugger, simply prepend C to the front of C