[development] selenium test

David Strauss david at fourkitchens.com
Wed Sep 12 07:07:24 UTC 2007


Doug Green wrote:
> The way I track these down is using xdebug2.  There's a function called
> xdebug_get_function_stack that prints the function stack.
> Edit bootstrap.inc and put this code at the top of check_plain (the
> function that's really getting the error), it will print the function
> stack out when you would get the error:
> 
>  if (is_array($text)) {
>    print_r(xdebug_get_function_stack());
>  }
> 
> Of course, it means that you have to get xdebug installed and working,
> and this might take a bit of an effort.

You don't need xdebug to print a backtrace in PHP:

debug_backtrace()

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 186 bytes
Desc: OpenPGP digital signature
Url : http://lists.drupal.org/pipermail/development/attachments/20070912/e52201f9/attachment.pgp 


More information about the development mailing list