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=bb9a558288d3e3c1b52c0d4adbfd000895d04173;hp=99372740de6cecd7aafc09eb70157c8f31611a1d;hb=7ce05098c9b1df9078e709e5a724e821a3b3b00d;hpb=512ec6d005f882e9f4502be3bfc9db2be2e7e1fd diff --git a/lib/Catalyst/Manual/Tutorial/07_Debugging.pod b/lib/Catalyst/Manual/Tutorial/07_Debugging.pod index 9937274..bb9a558 100644 --- a/lib/Catalyst/Manual/Tutorial/07_Debugging.pod +++ b/lib/Catalyst/Manual/Tutorial/07_Debugging.pod @@ -70,11 +70,11 @@ camps: =over 4 -=item * +=item * Fans of C and C statements embedded in the code. -=item * +=item * Fans of interactive debuggers. @@ -90,7 +90,7 @@ Folks in the former group can use Catalyst's C<$c-Elog> facility. following code to a controller action method: $c->log->info("Starting the foreach loop here"); - + $c->log->debug("Value of \$id is: ".$id); Then the Catalyst development server will display your message along @@ -141,13 +141,13 @@ you can obviously indent them if you prefer): # 'Context' that's used to 'glue together' the various components # that make up the application my ($self, $c) = @_; - + $DB::single=1; - + # 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::Book')->all]; - + # Set the TT template to use. You will almost always want to do this # in your action methods. $c->stash->{template} = 'books/list.tt2'; @@ -170,16 +170,16 @@ simply prepend C to the front of C