X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2F07_Debugging.pod;h=8afd0497aa4c8fad1a22b6c42c29e1b5cc0f1a0a;hp=510a097704d0d1ed8cec09431fd693bf267d99f6;hb=bf4d990b0a0ae91df4e722a5a8e51d614e8eeae0;hpb=d8e9b469736c9313a09ce5f08d10d1a467ffae09 diff --git a/lib/Catalyst/Manual/Tutorial/07_Debugging.pod b/lib/Catalyst/Manual/Tutorial/07_Debugging.pod index 510a097..8afd049 100644 --- a/lib/Catalyst/Manual/Tutorial/07_Debugging.pod +++ b/lib/Catalyst/Manual/Tutorial/07_Debugging.pod @@ -56,7 +56,7 @@ L =head1 DESCRIPTION -This chapter of the tutorial takes a brief look at the primary options +This chapter of the tutorial takes a brief look at the primary options available for troubleshooting Catalyst applications. Note that when it comes to debugging and troubleshooting, there are two @@ -79,9 +79,9 @@ Catalyst is able to easily accommodate both styles of debugging. =head1 LOG STATEMENTS -Folks in the former group can use Catalyst's C<$c-Elog> facility. -(See L for more detail.) For example, if -you add the following code to a controller action method: +Folks in the former group can use Catalyst's C<$c-Elog> facility. +(See L for more detail.) For example, if you add the +following code to a controller action method: $c->log->info("Starting the foreach loop here"); @@ -93,8 +93,8 @@ template view use: [% c.log.debug("This is a test log message") %] -As with many other logging facilities, a method is defined for -each of the following "logging levels" (in increasing order of +As with many other logging facilities, a method is defined for each of +the following "logging levels" (in increasing order of severity/importance): $c->log->debug @@ -103,8 +103,8 @@ severity/importance): $c->log->error $c->log->fatal -You can also use L in both Catalyst code -(Clog-Edebug("\$var is: ".Dumper($var));)>) +You can also use L in both Catalyst code +(Clog-Edebug("\$var is: ".Dumper($var));)>) and TT templates (C<[% Dumper.dump(book) %]>. @@ -135,8 +135,9 @@ you can obviously indent them if you prefer): $c->stash->{template} = 'books/list.tt2'; } -This causes the Perl Debugger to enter "single step mode" when this command is -encountered (it has no effect when Perl is run without the C<-d> flag). +This causes the Perl Debugger to enter "single step mode" when this +command is 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. @@ -144,8 +145,8 @@ 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