[TYPO3-core] RFC #15828: Enhance the ExtDirect debugging feature

Stefan Galinski stefan.galinski at gmail.com
Mon Sep 27 23:38:44 CEST 2010


Hi,

This is an SVN patch request.

Type: Feature

Bugtracker references:
http://bugs.typo3.org/view.php?id=15828

Branches: Trunk

Problem:
Currently you can use ExtDirect debugging only with the following call:
t3lib_extjs_extDirectDebug::debug('a debug string');

Solution:
Use the $GLOBALS['error'] variable that adds the possibility to use a 
special debug class for the debug function. You can use two possible 
ways after this now. As an additional goodie you can XCLASS the debug 
class now, because it isn't a finalized static class anymore.

$GLOBALS['error']->debug('a debug string');
or simply
debug('a debug string');

Note:
Thanks to SteffenK and Jeff for providing this idea. I will modify the 
ExtDirect wiki documentation after the commit of this patch.

How to Test:
Install the provided "extdirecttest" extension that demonstrates the 
debug methods.

-- 
Stefan Galinski
staatl. geprüfter Informatiktechniker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15828_v1.diff
Type: text/x-diff
Size: 2517 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100927/e863f539/attachment.diff>


More information about the TYPO3-team-core mailing list