Feature #23626
closedEnhance the ExtDirect debugging feature
0%
Description
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.
(issue imported from #M15828)
Files