[TYPO3-dev] debug: dump everything in the broweser

Simon Child news0503 at srchild.com
Tue Mar 27 21:17:18 CEST 2007


"Asbjoern Morell" <atmorell at gmail.com> wrote in message 
news:mailman.1.1175010439.26442.typo3-dev at lists.netfielders.de...
> Hey,
>
> Some time ago I programmed a few small applications in the framework Cake. 
> What I did was include a function phpdump in my index file, each time I 
> had problem I could dump everything onto the screen like this: 
> dump($this); This showed all objects, variables and sql query's in nice 
> colors and boxes. I tried to do the same thing from my typo3 frontend 
> plugin. debug($this); But I don't get anything? How do I do something like 
> that with typo3?

use the install tool, or edit typo3conf/localconf.php to add your ip address 
to the devIPmask setting:

$TYPO3_CONF_VARS["SYS"]["devIPmask"] = 'my.home.ip.address';

then use

    debug($array_to_dump);

or

    debug($GLOBALS);

and it will be displayed only to visitors using the specified ip addresses 
i.e. you.

-- 
Simon Child






More information about the TYPO3-dev mailing list