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

How can I activate debug mode for specific users or areas?

Discussion in 'XenForo Development Discussions' started by Tilkißey, Apr 3, 2011.

  1. Tilkißey

    Tilkißey Well-Known Member

    i wanna activate debug mode for only user_id=1 or only admins or only on admin.php file
    is there any way for this?
     
  2. xfrocks

    xfrocks Well-Known Member

    Call this method

    PHP:
    XenForo_Application::getDebugMode(true);
    You will need to call it early or you will have to turn on the database profiler yourself. For more information, just go read XenForo/Application.php
     
    Tilkißey likes this.

Share This Page