Skip to content

Instantly share code, notes, and snippets.

@jonhattan
Created February 14, 2014 14:02
Show Gist options
  • Save jonhattan/9001460 to your computer and use it in GitHub Desktop.
Save jonhattan/9001460 to your computer and use it in GitHub Desktop.
When you want a quick lightweight backtrace in #drupal. Alternative to devel's ddebug_backtrace(). Use this snippet in conjunction with `drush wd-show --tail`
<?php
foreach (debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS) as $call) {
watchdog('backtrace', $call['function']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment