X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=53e9b2184ea097c922684a22bb7a9af954fe4e75;hb=7e5c67f2407bba8afe4ded84f69aa6ff7ed7e4b2;hp=1fbccdd98bd760adf5acc55cacf3b8eb0d483ab3;hpb=f263fa9a3be935b736f5d901316565662387c41b;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 1fbccdd..53e9b21 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -846,10 +846,21 @@ L. =head2 $c->debug -Overload to enable debug messages (same as -Debug option). +Returns 1 if debug mode is enabled, 0 otherwise. -Note that this is a static method, not an accessor and should be overloaded -by declaring "sub debug { 1 }" in your MyApp.pm, not by calling $c->debug(1). +You can enable debug mode in several ways: + +=over + +=item With the environment variables MYAPP_DEBUG, or CATALYST_DEBUG + +=item The -Debug option in your MyApp.pm + +=item By declaring "sub debug { 1 }" in your MyApp.pm. + +=back + +Calling $c->debug(1) has no effect. =cut