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=125bc3df0baf14942923f5d6eb431b795d6777c9;hp=6a2d9427ba6efb07ff439fc6cc1ac2ad4bdeae7f;hb=8a7c51514fe8828c25ecd353ad2e9dc3b456ac9a;hpb=3533daff0314522f79dff9c618da087568f1378c diff --git a/lib/Catalyst/Manual/Tutorial/Debugging.pod b/lib/Catalyst/Manual/Tutorial/Debugging.pod index 6a2d942..125bc3d 100644 --- a/lib/Catalyst/Manual/Tutorial/Debugging.pod +++ b/lib/Catalyst/Manual/Tutorial/Debugging.pod @@ -90,7 +90,7 @@ Then the Catalyst development server will display your message along with the other debug output. To accomplish the same thing in a TTSite view use: - [% Catalyst.log.debug("This is a test log message") %] + [% c.log.debug("This is a test log message") %] You can also use L in both Catalyst code (Clog-Edebug("\$var is: ".Dumper($var));)>) @@ -116,7 +116,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('MyAppDB::Books')->all]; + $c->stash->{books} = [$c->model('DB::Books')->all]; # Set the TT template to use. You will almost always want to do this # in your action methods. @@ -126,6 +126,8 @@ you can obviously indent them if you prefer): This causes the Perl Debugger to enter "single step mode" when this command is encountered (it has no effect when Perl is run without the C<-d> flag). +B The C here is the Perl Debugger, not the DB model. + To now run the Catalyst development server under the Perl debugger, simply prepend C to the front of C