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

Ronan SALMON rsalmon at mbpgroup.com
Thu Mar 24 08:18:27 UTC 2011


Michael M Slusarz <slusarz at horde.org> a écrit :

> 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:
>
> Horde::debug($variable);
>
> 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).

Cool, really helpful.

Ronan.




More information about the dev mailing list