[dev] [commits] Horde branch master updated. 98f9f6978559983a90c1dbdee1309ffcae9483e3

Michael M Slusarz slusarz at horde.org
Wed Mar 23 17:14:52 UTC 2011

Quoting Michael M Slusarz <slusarz at horde.org>:

> commit 98f9f6978559983a90c1dbdee1309ffcae9483e3
> Author: Michael M Slusarz <slusarz at curecanti.org>
> Date:   Wed Mar 23 10:27:59 2011 -0600
>     Added Horde::debug()
>  framework/Core/lib/Horde.php |   30 ++++++++++++++++++++++++++++++
>  framework/Core/package.xml   |   16 +++++++++-------
>  2 files changed, 39 insertions(+), 7 deletions(-)
> http://git.horde.org/horde-git/-/commit/98f9f6978559983a90c1dbdee1309ffcae9483e3

Added this to provide a (hopefully) easier way to help debugging.   
Instead of having an end-user use some combination of  
var_dump()/print_r()/Horde::logMessage(), and possibly screen scraping  
(or parsing the log file) to grab the debug output, we should now be  
able to tell them to insert this into the script:


This will output a var_dump() of the variable (or if $variable is a  
stream, the contents of the stream) to a file called horde_debug.txt  
in their temporary directory.

The debug output file can also be explicitly specified through the  
second parameter to debug(), e.g. Horde::debug($variable, $filename).


Michael Slusarz [slusarz at horde.org]

More information about the dev mailing list