X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2F07_Debugging.pod;h=510a097704d0d1ed8cec09431fd693bf267d99f6;hb=d8e9b469736c9313a09ce5f08d10d1a467ffae09;hp=2e71f3a69ac4843932bdc3cc210af278005c882b;hpb=4768184b3b277399116fbd53cae3697a9767fee5;p=catagits%2FCatalyst-Manual.git diff --git a/lib/Catalyst/Manual/Tutorial/07_Debugging.pod b/lib/Catalyst/Manual/Tutorial/07_Debugging.pod index 2e71f3a..510a097 100644 --- a/lib/Catalyst/Manual/Tutorial/07_Debugging.pod +++ b/lib/Catalyst/Manual/Tutorial/07_Debugging.pod @@ -80,11 +80,11 @@ 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 +(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"); - + $c->log->debug("Value of \$id is: ".$id); Then the Catalyst development server will display your message along @@ -103,7 +103,7 @@ severity/importance): $c->log->error $c->log->fatal -You can also use L in both Catalyst code +You can also use L in both Catalyst code (Clog-Edebug("\$var is: ".Dumper($var));)>) and TT templates (C<[% Dumper.dump(book) %]>. @@ -129,7 +129,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::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'; @@ -288,12 +288,12 @@ copy of an installed module: mkdir -p lib/Module; cp `perldoc -l Module::Name` lib/Module/ -Note: If you are following along in Debian 5 or Ubuntu, you will +Note: If you are following along in Debian 6 or Ubuntu, you will need to install the C package to use the C command. Use C to do that. For example, you could make a copy of -L +L with the following command: mkdir -p lib/Catalyst/Plugin; cp \ @@ -357,7 +357,7 @@ declaration in C: There are a variety of options you can use, such as 'undef', 'all', 'service', 'context', 'parser' and 'provider'. See -L for more information +L for more information (remove the C portion of the name shown in the TT docs and convert to lower case for use inside Catalyst). @@ -372,9 +372,13 @@ Happy debugging. Kennedy Clark, C -Please report any errors, issues or suggestions to the author. The -most recent version of the Catalyst Tutorial can be found at +Feel free to contact the author for any errors or suggestions, but the +best way to report issues is via the CPAN RT Bug system at +. + +The most recent version of the Catalyst Tutorial can be found at L. -Copyright 2006-2010, Kennedy Clark, under Creative Commons License +Copyright 2006-2010, Kennedy Clark, under the +Creative Commons Attribution Share-Alike License Version 3.0 (L).