Created
February 14, 2014 14:02
-
-
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`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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