Update DBIX_CLASS_STORAGE_DBI_DEBUG to DBIC_TRACE.
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Manual / Tutorial / Debugging.pod
index bf0b1ed..6a958d3 100644 (file)
@@ -167,9 +167,8 @@ C<single-step> into methods/subroutines):
       DB<1>
 
 This takes you to the next line of code where the template name is set.
-Notice that because we enabled C<DBIX_CLASS_STORAGE_DBI_DEBUG=1>
-earlier, SQL debug output also shows up in the development server debug
-output.
+Notice that because we enabled C<DBIC_TRACE=1> earlier, SQL debug 
+output also shows up in the development server debug information.
 
 Next, list the methods available on our C<Book> model:
 
@@ -233,15 +232,17 @@ prompt to view the built-in help screens.
 =head1 DEBUGGING MODULES FROM CPAN
 
 Although the techniques discussed above work well for code you are 
-writing, what if you want to use print/log/warn messages or set
-breakpoints in code that you have installed from CPAN (or in module
-that ship with Perl)?  One helpful approach is to place a copy of 
-the module inside the C<lib> directory of your Catalyst project.  
-When Catalyst loads, it will load from inside your C<lib> directory
-first, only turning to the global modules if a local copy cannot be
-found.  You can then make modifications such as adding a 
-C<$DB::single=1> to the local copy of the module without risking 
-the copy in the original location.
+writing, what if you want to use print/log/warn messages or set 
+breakpoints in code that you have installed from CPAN (or in module that 
+ship with Perl)?  One helpful approach is to place a copy of the module 
+inside the C<lib> directory of your Catalyst project.  When Catalyst 
+loads, it will load from inside your C<lib> directory first, only 
+turning to the global modules if a local copy cannot be found.  You can 
+then make modifications such as adding a C<$DB::single=1> to the local 
+copy of the module without risking the copy in the original location. 
+This can also be a great way to "locally override" bugs in modules while 
+you wait for a fix on CPAN.
+
 
 Matt Trout has suggested the following shortcut to create a local
 copy of an installed module:
@@ -295,7 +296,7 @@ Otherwise, it returns undef and nothing will be printed.
 Kennedy Clark, C<hkclark@gmail.com>
 
 Please report any errors, issues or suggestions to the author.  The
-most recent version of the Catlayst Tutorial can be found at
+most recent version of the Catalyst Tutorial can be found at
 L<http://dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst-Runtime/lib/Catalyst/Manual/Tutorial/>.
 
 Copyright 2006, Kennedy Clark, under Creative Commons License