[TYPO3-dev] domesticating t3lib_div::debug

Steffen Kamper steffen at sk-typo3.de
Sat May 3 14:29:59 CEST 2008


"Michael Stucki" <michael at typo3.org> schrieb im Newsbeitrag 
news:mailman.1.1209815100.22413.typo3-dev at lists.netfielders.de...
> Dmitry Dulepov [typo3] wrote:
>
>> In any case, listen to yourself :) You say: "We introduced docheaders and
>> debug() is now broken. So, instead of fixing docheaders, let's break
>> debug() for every existing extension but make it work for docheaders".
>> This is not right. If docheaders broke debug, fix docheaders, do not 
>> break
>> debug further :) DO not touch function that worked for ages. Fix new
>> functions that is not yet fully used be people.
>
> Good point. I think it's not worth to change the debug function because 
> its
> simplicity is exactly the reason why I'm using it.
>
> If you want to debug something in the backend, I suggest to use
> t3lib_div::devLog() instead.
>
> - michael
> -- 

but we need a solution for such cases:
http://bugs.typo3.org/file_download.php?file_id=4752&type=bug

(this is outputted in t3lib_db::debug which does an echo too)

when not changing debug, please show an alternative way to solve this ;-)

vg Steffen 






More information about the TYPO3-dev mailing list