X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2F07_Debugging.pod;h=99372740de6cecd7aafc09eb70157c8f31611a1d;hb=be3349e1a2966ee8abc15c1b9a168a3c70125ccb;hp=65be2f0f343c1661e1ed6c7285ecb2eda836d11e;hpb=477a6d5b13f55eb335979812080e4a11217f19d6;p=catagits%2FCatalyst-Manual.git diff --git a/lib/Catalyst/Manual/Tutorial/07_Debugging.pod b/lib/Catalyst/Manual/Tutorial/07_Debugging.pod index 65be2f0..9937274 100644 --- a/lib/Catalyst/Manual/Tutorial/07_Debugging.pod +++ b/lib/Catalyst/Manual/Tutorial/07_Debugging.pod @@ -109,9 +109,15 @@ severity/importance): $c->log->error $c->log->fatal -You can also use L in both Catalyst code -(Clog-Edebug("\$var is: ".Dumper($var));)>) -and TT templates (C<[% Dumper.dump(book) %]>. +You can also use Data::Dumper in both Catalyst code and in TT templates. +For use in Catalyst code: + + use Data::Dumper; + $c->log->debug("\$var is: ".Dumper($c->stash->{something})); + +and TT templates: + + [% USE Dumper ; Dumper.dump(c.stash.something) %]. B Whether you are a logging fanatic or not, we strongly recommend that you take advantage of L or L. It's