[TYPO3-dev] How to handle debug()

Steffen Kamper info at sk-typo3.de
Thu Oct 15 22:34:22 CEST 2009


Hi,

Felix Oertel schrieb:
> Hi everyone,
> 
> as I can see, the debug() function in config_default is the one to be 
> used by now. It checks for global errorhandling 
> ($GLOABALS['error']->debug()) and provides a fallback to 
> t3lib_div::debug().
> 
> I think it would be a good idea to move debug() into a namespace 
> (providing a dummy-function for compatibility reasons) and remove all 
> direct usage of t3lib_div::debug() from the code.
> 
> I would do that, just wondred what you guys are thinking.
> 
> Regards, Felix

i don't see a need for. And where is t3lib_div::debug() used in core?

debug has to be initialized that early to allow debug extensions to hook 
in, so config_default is a good place for.

vg Steffen




More information about the TYPO3-dev mailing list