Project

General

Profile

Actions

Feature #23626

closed

Enhance the ExtDirect debugging feature

Added by Stefan Galinski about 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-09-27
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

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

15828_v1.diff (2.46 KB) 15828_v1.diff Administrator Admin, 2010-09-27 23:36
T3X_extdirecttest-1_0_0-z-201009272334.t3x (6.48 KB) T3X_extdirecttest-1_0_0-z-201009272334.t3x Administrator Admin, 2010-09-27 23:36

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #23565: ExtDirect Debugging with t3lib_utility_debugClosed2010-09-19

Actions
Actions

Also available in: Atom PDF