OK, found a work around using

debug($asdf);

where $asdf is a non-existent variable. So a warning is printed
including the stack trace. ;-)

On Tue, Oct 5, 2010 at 10:29 AM, psybear83 <psybea...@gmail.com> wrote:
> Hi all
>
> I'm having problems with debugging a white screen of death, and so I
> set up a blackHoleCallback in AppController:
>
>        function beforeFilter() {
>          $this->Security->blackHoleCallback = 'blackHole';
>        }
>
>        function blackHole() {
>          // TODO: Nur ausgeben, wenn in development mode! --zivi-muh
>          debug(func_get_args());
>          die("black hole!");
>        }
>
> Sadly this only returns me:
>
> app/controllers/app_controller.php (line 291)
>
> Array
> (
>    [0] => auth
> )
>
>
> black hole!
>
> ...which is not very much information. I tried it with
> debug_print_stacktrace(), but this displays me a huuuuuuge amount of
> information that I can't really analyze myself. I'd only like to know
> where the black hole was triggered, so I can do further debugging
> there. Is there a way for doing that?
>
> Thanks
> Josh
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to