[TYPO3-core] RFC: #12614: Debug output destroys BE HTML

Ernesto Baschny [cron IT] ernst at cron-it.de
Mon Nov 16 20:08:28 CET 2009


Steffen Kamper schrieb:

> Dmitry Dulepov schrieb:
>> Will it work if page is terminated before the page rendering completes?
>>
> you mean with exit? This of course will not work. Which reason should be
> there for an exit?
> 
>> Will debug messages shown on the same page where user works now like
>> with current debug() implementation?
>>
> yes. Give it a try.

Reason could be a "Fatal error" which you are trying to debug by adding
t3lib::debug statements in your code. With your change, the t3lib::debug
won't trigger any output, but will hope / expect that the flash
messagequeue gets rendered. Potentially this is also not true for
frontend modules.

I like the idea, but I would prefer to have a separate method to do
this, where the developer that is used to the t3lib::debug isn't annoyed
by it and the "new developers" can start using it to debug backend code.

What do you think?

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list