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

question about debug mode

Discussion in 'General XenForo Discussion and Feedback' started by typostudy, Apr 15, 2013.

  1. typostudy

    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?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    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.
     
    Liam W likes this.
  3. typostudy

    typostudy Member

    Great . Thanks
     
  4. Ron

    Ron Member

    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;
    }
     
    caliman and AndyB like this.

Share This Page