[TYPO3-ect] lib/div debugging with krumo
Elmar Hinz
elmar07 at googlemail.com
Tue Sep 18 22:23:48 CEST 2007
Hello,
some experiences with debugging.
* print_r:
is not very usefull for object orientated programming, because it displays
all realted objects at once. To much information at once.
* T3 debug:
Is better. Unfortunately since PHP5 it often breaks, when debugging objects
referenced in arrays. I can't use is with lib any more.
* CC debug:
I didn't test it with lib, because it's often to slow for me.
Today I looked around for an alternative and discoverd
http://krumo.sourceforge.net/
That is relly nice tool and makes working with lib and PHP5 much more funny.
So that's my recommendation for today.
Quickly build your own Kromo extension:
1. Put the krumo folder into the extension.
2. ext_localconf:
if (TYPO3_MODE == 'FE'){
set_include_path(get_include_path() . PATH_SEPARATOR .
t3lib_extMgm::extPath('krumo') . 'krumo/');
require_once('class.krumo.php');
}
3. clear caches.
Regards
Elmar
More information about the TYPO3-team-extension-coordination
mailing list