FAQ
Hi All

I removed -Debug, and set $ENV{CATALYST_DEBUG} =1 using PerlSetEnv
CATALYST_DEBUG 1.

But it doesn't work. I can't see the debug info in the apache log file.

--
Jack Malloy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090629/ccca2ea7/attachment.htm

Search Discussions

  • Kieren Diment at Jun 29, 2009 at 7:35 am
    err that switches it off in the app and switches it off in the env
    var. Just remove -Debug and all should be fine
    On 29/06/2009, at 5:21 PM, Malloy wrote:

    Hi All

    I removed -Debug, and set $ENV{CATALYST_DEBUG} =1 using PerlSetEnv
    CATALYST_DEBUG 1.

    But it doesn't work. I can't see the debug info in the apache log
    file.

    --
    Jack Malloy
    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
  • Malloy at Jun 29, 2009 at 8:17 am
    Thanks. But I want to control it using CATALYST_DEBUG or <MyApp>_DEBUG, not
    just switch it off.
    On Mon, Jun 29, 2009 at 3:35 PM, Kieren Diment wrote:

    err that switches it off in the app and switches it off in the env var.
    Just remove -Debug and all should be fine

    On 29/06/2009, at 5:21 PM, Malloy wrote:

    Hi All
    I removed -Debug, and set $ENV{CATALYST_DEBUG} =1 using PerlSetEnv
    CATALYST_DEBUG 1.

    But it doesn't work. I can't see the debug info in the apache log file.

    --
    Jack Malloy
    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/


    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/


    --
    Jack Malloy
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090629/41cdfb31/attachment.htm
  • Kieren Diment at Jun 29, 2009 at 11:20 am

    On 29/06/2009, at 6:17 PM, Malloy wrote:

    Thanks. But I want to control it using CATALYST_DEBUG or
    <MyApp>_DEBUG, not
    just switch it off.
    So uncomment PerlSetEnv CATALYST_DEBUG=1 in you config when you want
    debugging on.
    On Mon, Jun 29, 2009 at 3:35 PM, Kieren Diment wrote:

    err that switches it off in the app and switches it off in the env
    var.
    Just remove -Debug and all should be fine

    On 29/06/2009, at 5:21 PM, Malloy wrote:

    Hi All
    I removed -Debug, and set $ENV{CATALYST_DEBUG} =1 using PerlSetEnv
    CATALYST_DEBUG 1.

    But it doesn't work. I can't see the debug info in the apache log
    file.

    --
    Jack Malloy
    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/


    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/


    --
    Jack Malloy
    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
  • Ian Wells at Jun 29, 2009 at 1:34 pm

    2009/6/29 Kieren Diment <diment@gmail.com>:
    So uncomment PerlSetEnv CATALYST_DEBUG=1 in you config when you want
    debugging on.
    Where did he say he'd commented it out?
    I removed -Debug, and set $ENV{CATALYST_DEBUG} =1 using PerlSetEnv
    CATALYST_DEBUG 1.
    Malloy, try dumping $ENV{CATALYST_DEBUG} in your app code and seeing
    if it's actually set. Ideally, do that in lib/{App}.pm .

    --
    Ian.
  • Tomas Doran at Jun 29, 2009 at 6:45 pm

    On 29 Jun 2009, at 14:34, Ian Wells wrote:
    I removed -Debug, and set $ENV{CATALYST_DEBUG} =1 using PerlSetEnv
    CATALYST_DEBUG 1.
    Malloy, try dumping $ENV{CATALYST_DEBUG} in your app code and seeing
    if it's actually set. Ideally, do that in lib/{App}.pm .
    This behavior sounds like you may be running 5.80001.

    If that's the case, please upgrade - you're hitting a bug which was
    fixed.

    Cheers
    t0m
  • Malloy at Jun 30, 2009 at 1:59 am
    I can get $ENV{CATALYST_DEBUG} in my templates. But can't get it in
    lib/{App}.pm.

    #Use of uninitialized value $ENV{"CATALYST_DEBUG"} in print at
    /path/lib/{app}.pm line 38.

    And Catalyst is up to date.

    cpan> install Catalyst
    Catalyst is up to date (5.80005).

    On Tue, Jun 30, 2009 at 2:45 AM, Tomas Doran wrote:

    On 29 Jun 2009, at 14:34, Ian Wells wrote:

    I removed -Debug, and set $ENV{CATALYST_DEBUG} =1 using PerlSetEnv
    CATALYST_DEBUG 1.
    Malloy, try dumping $ENV{CATALYST_DEBUG} in your app code and seeing
    if it's actually set. Ideally, do that in lib/{App}.pm .
    This behavior sounds like you may be running 5.80001.

    If that's the case, please upgrade - you're hitting a bug which was fixed.

    Cheers
    t0m



    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/


    --
    Jack Malloy
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090630/a3e0da09/attachment.htm
  • Tomas Doran at Jul 12, 2009 at 12:36 am

    On 30 Jun 2009, at 02:59, Malloy wrote:

    I can get $ENV{CATALYST_DEBUG} in my templates. But can't get it in
    lib/{App}.pm.

    #Use of uninitialized value $ENV{"CATALYST_DEBUG"} in print at /
    path/lib/{app}.pm line 38.

    And Catalyst is up to date.

    cpan> install Catalyst
    Catalyst is up to date (5.80005).
    Ah, you're trying to read the actual environment variable.. Don't do
    that! Check $c->debug instead..

    If you _really_ need things from the environment, they're in $c-
    engine->env
    Cheers
    t0m

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedJun 29, '09 at 7:21a
activeJul 12, '09 at 12:36a
posts8
users4
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2022 Grokbase