Re: Debugger stuck in a loop

2008-02-02 Thread Bryn
I have found similar infinite recursion problems anytime there is a php notice thrown. I've been able to work around it by disabling the debugger from handling phps error handling I put define("DISABLE_DEFAULT_ERROR_HANDLING", true); temporarily in debugger.php until this is fixed but you could

Re: Debugger stuck in a loop

2008-01-24 Thread jonknee
It is a bit odd. Unfortunately the Debugger class is new in 1.2 so there is nothing to look back on. I'm not familiar enough with the inner workings to fix it fully, but there is definitely some more work to be done in the class. As you mentioned, $recursion doesn't seem to be doing anything (one

Re: Debugger stuck in a loop

2008-01-23 Thread [EMAIL PROTECTED]
I haven't yet had the time to look into it in much detail so I'm afraid I'm not much help. I think you are absolutely right though. I also think it's odd that the $recursion variable that keeps getting counted down whenever exportVar() is called (except when it is called from __object()) and is ne

Re: Debugger stuck in a loop

2008-01-23 Thread jonknee
Great, thanks for the tip. This is almost certainly a bug since the debugger should never get stuck in an infinite loop. If I take the __object() call out of the 'object' case, everything works fine (even with get_class() intact). I just wonder what the intended behavior is, the documentation isn'

Re: Debugger stuck in a loop

2008-01-23 Thread [EMAIL PROTECTED]
actually, after re-reading my post I think you're seeing problems with the same function that I am (the __object($var) function, not the get_class() function as I stated above) try commenting out the same lines of code from my earlier post: //causes some sort of overflow

Re: Debugger stuck in a loop

2008-01-23 Thread [EMAIL PROTECTED]
here is my previous post: http://groups.google.com/group/cake-php/browse_thread/thread/48c6a57a5427a546/4169d2729f0d71b4#4169d2729f0d71b4 On Jan 23, 2:40 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I was having a similar problem with the cake debugger running out of > memory on an error

Re: Debugger stuck in a loop

2008-01-23 Thread [EMAIL PROTECTED]
I was having a similar problem with the cake debugger running out of memory on an error (in this case it was an undefined variable in the view). I just commented out the offending lines of code in /cake/libs/ debugger.php. The problem was a call to the get_class() function and it looks like it's h