X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2F07_Debugging.pod;h=44e0f9af8731052d5403fc6a05d9db83b426e052;hb=22fe0f18ac89a984b2a27ff0eb146f485cfb9a8c;hp=bf35d96c003d175229240be8dd45b19cf32073b6;hpb=aa7ff3257b8cc635010cfa8caee47a45efcab1f6;p=catagits%2FCatalyst-Manual.git diff --git a/lib/Catalyst/Manual/Tutorial/07_Debugging.pod b/lib/Catalyst/Manual/Tutorial/07_Debugging.pod index bf35d96..44e0f9a 100644 --- a/lib/Catalyst/Manual/Tutorial/07_Debugging.pod +++ b/lib/Catalyst/Manual/Tutorial/07_Debugging.pod @@ -80,7 +80,7 @@ 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"); @@ -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) %]>. @@ -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 \ @@ -348,7 +348,7 @@ Otherwise, it returns undef and nothing will be printed. If you run into issues during the rendering of your template, it might be helpful to enable TT C options. You can do this in a Catalyst environment by adding a C line to the C<__PACKAGE__->config> -declaration in C: +declaration in C: __PACKAGE__->config({ TEMPLATE_EXTENSION => '.tt2', @@ -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-2008, Kennedy Clark, under Creative Commons License +Copyright 2006-2010, Kennedy Clark, under the +Creative Commons Attribution Share-Alike License Version 3.0 (L).