1 system.admin.inc system_debug_info()

Menu callback: displays the debug info page.

@since 1.28.0 function added.

See also




core/modules/system/system.admin.inc, line 2340
Admin page callbacks for the System module.


function system_debug_info() {
  global $language;

  $form['help'] = array(
    '#type' => 'help',
    '#markup' => t('This report includes information about your site commonly requested for troubleshooting or support purposes, ready for copy/paste if needed.'),

  $debug_info = system_get_debug_info();

  $form['debug_info'] = array(
    '#type' => 'textarea',
    '#title' => t('Debug report'),
    '#value' => _system_format_debug_info($debug_info, array('rtl' => $language->direction == LANGUAGE_RTL)),
    // Expand the default length of the text field, to ensure that all the
    // debug output is visible without having to scroll within the text field.
    '#rows' => count($debug_info) + 1,
    '#attributes' => array(
      'id' => 'debug-info-wrapper',
      // Using the 'readonly' attribute to lock the text, since it gives us a
      // "cursor: text" cursor for free (using 'disabled' would result in a
      // "cursor: text" instead).
      'readonly' => 'readonly',

  return $form;