• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

question about debug mode

#1
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?
 

Brogan

XenForo moderator
Staff member
#2
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.
 
#4
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;
}