question about debug mode

typostudy

Member
In /library/config.php,
what is the usage of below code:
$config['debug'] = true;

I know it will put system into 'debug' mode, but what is the actual result? Does that mean: if I do some changes in codes, the fronted user will not see?
 
It allows you to see queries and page load times, etc and also makes the Development tab available in the ACP.

It should only really be used during development, not on a live site.
 
You can also limit it as follows in config.php for only your IP. This eliminates the overhead for all visitors except you but still allows you to see load times etc.:

if ($_SERVER['REMOTE_ADDR'] == 'your.i.p.address')
{
$config['debug'] = 1;
}
 
Top Bottom