From: Tomas Doran Date: Wed, 27 Jan 2010 20:12:46 +0000 (+0000) Subject: Clarrify debug documentation X-Git-Tag: 5.80019~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=c8083f4e984e61ea783d324f9064282ae38a4607;hp=dd22babd950d989c9910c07cc9965e1c9abb67c3 Clarrify debug documentation --- diff --git a/Changes b/Changes index 12cc5f2..f68cba7 100644 --- a/Changes +++ b/Changes @@ -12,6 +12,7 @@ Documentation: - Clarify that uri_for_action works on private paths, with example. + - Clarify documentation about debug Deprecations: - Saying use Catalyst::Test; (without an application name or () to stop diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index a0bb135..0165a44 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -243,6 +243,9 @@ environment with CATALYST_DEBUG or _DEBUG. The environment settings override the application, with _DEBUG having the highest priority. +This sets the log level to 'debug' and enables full debug output on the +error screen. If you only want the latter, see L<< $c->debug >>. + =head2 -Engine Forces Catalyst to use a specific engine. Omit the @@ -931,6 +934,8 @@ You can enable debug mode in several ways: =back +The first three also set the log level to 'debug'. + Calling C<< $c->debug(1) >> has no effect. =cut