how to set CATALYST_DEBUG

View: New views
8 Messages — Rating Filter:   Alert me  

how to set CATALYST_DEBUG

by Malloy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@.../
Dev site: http://dev.catalyst.perl.org/

Re: how to set CATALYST_DEBUG

by Kieren Diment-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@.../
> Dev site: http://dev.catalyst.perl.org/



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

Re: how to set CATALYST_DEBUG

by Malloy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <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@...
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@.../
Dev site: http://dev.catalyst.perl.org/



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



--
Jack Malloy

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

Re: how to set CATALYST_DEBUG

by Kieren Diment-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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



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

Re: how to set CATALYST_DEBUG

by Ian Wells-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/6/29 Kieren Diment <diment@...>:
> 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.

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

Re: how to set CATALYST_DEBUG

by Tomas Doran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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@...
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@.../
Dev site: http://dev.catalyst.perl.org/

Re: how to set CATALYST_DEBUG

by Malloy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <bobtfish@...> 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@...
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@.../
Dev site: http://dev.catalyst.perl.org/



--
Jack Malloy

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

Re: how to set CATALYST_DEBUG

by Tomas Doran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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


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