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;h=b320b17109784f5a864b1d82e0f31a4a298bb2ff;hp=6deab22bafb9456b64c1ec7744fc5e61aec4aa08;hb=8c4a5110106a0c4d2e416ec772cdd0bfefb4862c;hpb=d712b8268991d1d97723bda87975411c4f74263d diff --git a/lib/Catalyst/Manual/Tutorial/Debugging.pod b/lib/Catalyst/Manual/Tutorial/Debugging.pod index 6deab22..b320b17 100644 --- a/lib/Catalyst/Manual/Tutorial/Debugging.pod +++ b/lib/Catalyst/Manual/Tutorial/Debugging.pod @@ -79,7 +79,7 @@ following code to a controller action method: $c->log->info("Starting the foreach loop here"); - $c->log->debug("Value of $id is: ".$id); + $c->log->debug("Value of \$id is: ".$id); Then the Catalyst development server will display your message along with the other debug output. To accomplish the same thing in a TTSite @@ -88,7 +88,7 @@ view use: [% Catalyst.log.debug("This is a test log message") %] You can also use L in both Catalyst code -(Clog-Edebug("$var is: ".Dumper($var));)>) +(Clog-Edebug("\$var is: ".Dumper($var));)>) and TT templates (C<[% Dumper.dump(book) %]>. =head1 RUNNING CATALYST UNDER THE PERL DEBUGGER