Open Source PHP RAD Framework with UI.

How do I make my debug data show?

Created by Greg on on 2010-09-28
Keywords:
debug error log
Last updated by:
Greg on on 2012-09-26

The most basic way of debugging is to make the code display data at specific point of the execution. For that the framework provides a simple call:

$this->log('This should be displayed');

To prevent such data to appear on a production site, several things must be set correctly in the configuration file:

$configuration['production'] = false; // true would prevent any debug data to appear
$configuration['debug']['enable'] = true; // to enable debugging
$configuration['debug']['domains'] = array('user'); // 'user' is for your data, but you can also enable framework data
$configuration['debug']['level'] = 4; // a lower value would mask debug data

See: http://www.phpdevshell.org/node/40