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

How to enable debug mode

Discussion in 'XenForo Development Discussions' started by AndyB, Dec 24, 2013.

  1. AndyB

    AndyB Well-Known Member

    The purpose of this thread is to explain how to enable the debug mode in your admin control panel. Having debug mode enabled allows you to change the Execution Order of Template Modifications as well as make other changes not possible until you have enabled debug mode.

    1) Open your library/config.php file in an editor

    2) Add the following code to the bottom of the file

    if ($_SERVER['REMOTE_ADDR'] == '') {
    $config['debug'] = true;
    Change the IP address to your home IP address.

    3) Save file

    You can safely leave the debug mode enabled and there is no reason to disable it.
    adwade likes this.
  2. Jeremy

    Jeremy Well-Known Member

  3. 0ptima

    0ptima Well-Known Member

    With Andy's snippet of code, will Xenforo run in debug mode for only those who have that IP address?
    adwade likes this.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    adwade likes this.

Share This Page