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

Debug Mode - what to look for?

Discussion in 'XenForo Questions and Support' started by RobParker, May 7, 2012.

  1. RobParker

    RobParker Well-Known Member

    We're still seeing a poor performance from XF and I was wondering if it was possible to use debug mode to see if any of the addons we use we're causing issues.

    Could someone maybe explain some of the things returned via debug mode? For example, what's the "params" value? Some of the numbers returned there are very high.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You can enable debug mode by adding this line to your library/config.php file:

    $config['debug'] = 1;
    It will show load stats at the bottom of every forum page which is a good way to see if an addon is affecting load in any way. Simply compare the load numbers at the bottom of the page with and without an addon enabled.
  3. RobParker

    RobParker Well-Known Member

    Sorry I wasn't clear. I have debug mode enabled but it's not clear what some of the output means, such as:

    Params: 347, 347, 1333807787
    Run Time: 0.000907

    What's the params values there?
  4. RobParker

    RobParker Well-Known Member

    Another example is

    INSERT INTO xf_session_activity
    	(user_id, unique_key, ip, controller_name, controller_action, view_state, params, view_date)
    	(?, ?, ?, ?, ?, ?, ?, ?)
    	ip = VALUES(ip),
    	controller_name = VALUES(controller_name),
    	controller_action = VALUES(controller_action),
    	view_state = VALUES(view_state),
    	params = VALUES(params),
    	view_date = VALUES(view_date)
    Params: 347, 347, 1396923388, XenForo_ControllerPublic_Index, Index, valid, , 1336399898
    Run Time: 0.000489
  5. Jeremy P

    Jeremy P Well-Known Member

    They correspond to the values being inserted..
    (user_id, unique_key, ip, controller_name, controller_action, view_state, params, view_date)
    (347, 347, 1396923388, XenForo_ControllerPublic_Index, Index, valid, , 1336399898)
  6. RobParker

    RobParker Well-Known Member

    Ah thanks. So a huge number isn't a problem.
  7. Shinjiru

    Shinjiru Member

    Hm, prepares the debug mode any problems? or can i enable it without worrying? thx (y)
  8. RobParker

    RobParker Well-Known Member

    It's probably wise to use a conditional so it only shows to admins and not everyone. There's an example in the RM of how to do that.
  9. Andrej

    Andrej Well-Known Member


Share This Page