[TYPO3-dev] domesticating t3lib_div::debug
Martin Kutschker
martin.kutschker-n0spam at no5pam-blackbox.net
Fri May 2 22:50:49 CEST 2008
Steffen Kamper schrieb:
> Hi,
>
> as i work much in BE it's very annyoing that any debug message in BE
> destroys the layout, so i patched my BE like this:
>
> - t3lib_div::debug doesn't echo but collect debug info in
> $GLOBALS['debugOut']
> - template.php fills marker ###DEBUG### with $GLOBALS['debugOut']
> - possibility to supress all debugs with $GLOBALS['noDebug'] = 1
> - placed ###DEBUG### in all BE-templates behind ###CONTENT###
>
> - placed $GLOBALS['debugOut'] in FE before </body>
>
> This makes it possible to work in BE with debug again. I don't see a need
> for do a "echo" in core.
>
> What do you think? Anything speaking again this?
I don't know. I never use debug() but rely on times in my own
echos/print_r/t3lib_div::print_arrays :-)
Masi
More information about the TYPO3-dev
mailing list