X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FDebugging.pod;h=a7e175a5e66cb9261bd152a4061a4db637983df4;hb=8a472b348fcfa36ba50a5182fbd4449a71b8044a;hp=6aef0e7f3fc84c24131d8eae0be61fd1bc4abe64;hpb=82ab4bbf7fc1c88e5c23821a9cc304c69d0aaf09;p=catagits%2FCatalyst-Manual.git diff --git a/lib/Catalyst/Manual/Tutorial/Debugging.pod b/lib/Catalyst/Manual/Tutorial/Debugging.pod index 6aef0e7..a7e175a 100644 --- a/lib/Catalyst/Manual/Tutorial/Debugging.pod +++ b/lib/Catalyst/Manual/Tutorial/Debugging.pod @@ -1,11 +1,11 @@ =head1 NAME -Catalyst::Manual::Tutorial::Debugging - Catalyst Tutorial - Part 7: Debugging +Catalyst::Manual::Tutorial::Debugging - Catalyst Tutorial - Chapter 7: Debugging =head1 OVERVIEW -This is B for the Catalyst tutorial. +This is B for the Catalyst tutorial. L @@ -56,7 +56,7 @@ L =head1 DESCRIPTION -This part of the tutorial takes a brief look at the primary options +This chapter of the tutorial takes a brief look at the primary options available for troubleshooting Catalyst applications. Note that when it comes to debugging and troubleshooting, there are two @@ -139,12 +139,12 @@ This will start the interactive debugger and produce output similar to: $ perl -d script/myapp_server.pl - Loading DB routines from perl5db.pl version 1.27 + Loading DB routines from perl5db.pl version 1.3 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. - main::(script/myapp_server.pl:14): my $debug = 0; + main::(script/myapp_server.pl:16): my $debug = 0; DB<1> @@ -158,8 +158,8 @@ in. Once the breakpoint is encountered in the C method, the console session running the development server will drop to the Perl debugger prompt: - MyApp::Controller::Books::list(/home/me/MyApp/script/../lib/MyApp/Controller/Books.pm:40): - 40: $c->stash->{books} = [$c->model('DB::Books')->all]; + MyApp::Controller::Books::list(/home/me/MyApp/script/../lib/MyApp/Controller/Books.pm:48): + 48: $c->stash->{books} = [$c->model('DB::Books')->all]; DB<1> @@ -170,8 +170,8 @@ C into methods/subroutines): DB<1> n SELECT me.id, me.authors, me.title, me.rating FROM books me: - MyApp::Controller::Books::list(/home/me/MyApp/script/../lib/MyApp/Controller/Books.pm:44): - 44: $c->stash->{template} = 'books/list.tt2'; + MyApp::Controller::Books::list(/home/me/MyApp/script/../lib/MyApp/Controller/Books.pm:53): + 53: $c->stash->{template} = 'books/list.tt2'; DB<1> @@ -185,15 +185,11 @@ Next, list the methods available on our C model: () (0+ (bool - MODIFY_CODE_ATTRIBUTES - _attr_cache - _collapse_result - _construct_object - _count - _result_class_accessor - _result_source_accessor - all - carp + __source_handle_accessor + _add_alias + _build_unique_query + _calculate_score + _collapse_cond DB<2> @@ -258,9 +254,9 @@ copy of an installed module: mkdir -p lib/Module; cp `perldoc -l Module::Name` lib/Module/ -Note: If you are following along in Ubuntu, you will need to install +Note: If you are following along in Debian 5, you will need to install the C package to use the C command. Use -C to do that. +C to do that. For example, you could make a copy of L