You are here

function devel_debug in Devel 8.2

Same name and namespace in other branches
  1. 8.3 devel.module \devel_debug()
  2. 4.x devel.module \devel_debug()

Logs a variable to a drupal_debug.txt in the site's temp directory.

Wrapper for DevelDumperManager::debug().

Parameters

mixed $input: The variable to log to the drupal_debug.txt log file.

string $name: (optional) If set, a label to output before $data in the log file.

string $plugin_id: (optional) The plugin ID, defaults to NULL.

Return value

null|false Empty if successful, FALSE if the log file could not be written.

See also

\Drupal\devel\DevelDumperManager::debug()

1 string reference to 'devel_debug'
Debug::getName in src/Twig/Extension/Debug.php

File

./devel.module, line 363
This module holds functions useful for Drupal development.

Code

function devel_debug($input, $name = NULL, $plugin_id = NULL) {
  return \Drupal::service('devel.dumper')
    ->debug($input, $name, $plugin_id);
}