Evgeniy Melnikov
www.angarsky.ru
@angarsky
https://www.drupal.org/project/devel
Function dsm()
https://www.drupal.org/project/devel
Function dpq()
https://www.drupal.org/project/devel
/**
* Implements hook_preprocess_HOOK().
*/
function bootstrap_mel_preprocess_page(&$vars) {
$d = db_select('users', 'u')
->fields('u', array('name', 'created'))
->condition('u.status', 1);
dpq($d);
}
Function ddebug_backtrace()
https://www.drupal.org/project/devel
https://www.drupal.org/project/hacked
/**
* Function definition.
*/
function watchdog($type, $message, $variables = array(), $severity = WATCHDOG_NOTICE, $link = NULL) {}
// How to use this function.
watchdog('my_module', 'Data to show - @data.', array('@data' => $some_data), WATCHDOG_DEBUG);
XDebug — a PHP extension for powerful debugging. It supports stack and function traces, profiling information and memory allocation and script execution analysis.
Basics of Debugging in Drupal
Evgeniy Melnikov
www.angarsky.ru
@angarsky