function debug

cis7 common.inc debug($data, $label = NULL, $print_r = FALSE)
cle7 common.inc debug($data, $label = NULL, $print_r = FALSE)
elmsmedia7 common.inc debug($data, $label = NULL, $print_r = FALSE)
icor7 common.inc debug($data, $label = NULL, $print_r = FALSE)
meedjum_blog7 common.inc debug($data, $label = NULL, $print_r = FALSE)
mooc7 common.inc debug($data, $label = NULL, $print_r = FALSE)

Outputs debug information.

The debug information is passed on to trigger_error() after being converted to a string using _drupal_debug_message().

Parameters

$data: Data to be output.

$label: Label to prefix the data.

$print_r: Flag to switch between print_r() and var_export() for data conversion to string. Set $print_r to TRUE when dealing with a recursive data structure as var_export() will generate an error.

7 calls to debug()
views_data_export_plugin_query_default_batched::execute in sites/all/modules/local_contrib/views_data_export/plugins/views_data_export_plugin_display_export.inc
Executes the query and fills the associated view object with according values.
views_debug in sites/all/modules/ulmus/views/views.module
Provide debug output for Views.
views_handler_field::add_additional_fields in sites/all/modules/ulmus/views/handlers/views_handler_field.inc
Add 'additional' fields to the query.
views_plugin_style::render in sites/all/modules/ulmus/views/plugins/views_plugin_style.inc
Render the display in this style.
views_xml_backend_plugin_query_xml::parse in sites/all/modules/ulmus/views_xml_backend/views_xml_backend_plugin_query_xml.inc

... See full list

29 string references to 'debug'
adaptivetheme_form_system_theme_settings_alter in sites/all/themes/ulmus/adaptivetheme/at_core/theme-settings.php
@file Implimentation of hook_form_system_theme_settings_alter()
alpha_alpha_preprocess_html in sites/all/themes/ulmus/omega/alpha/template.php
Implements hook_preprocess_html().
alpha_grid_include in sites/all/themes/ulmus/omega/alpha/includes/alpha.inc
Includes all active layouts for a specific column count of the grid in charge for the current theme and also adds the corresponding grid debugging CSS if debugging is enabled.
alpha_page_alter in sites/all/themes/ulmus/omega/alpha/template.php
Implements hook_page_alter().
alpha_theme_container::settings in sites/all/themes/ulmus/omega/alpha/includes/base.inc
@todo

... See full list

File

includes/common.inc, line 7515
Common functions that many Drupal modules will need to reference.

Code

function debug($data, $label = NULL, $print_r = FALSE) {
  // Print $data contents to string.
  $string = check_plain($print_r ? print_r($data, TRUE) : var_export($data, TRUE));

  // Display values with pre-formatting to increase readability.
  $string = '<pre>' . $string . '</pre>';

  trigger_error(trim($label ? "$label: $string" : $string));
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.