Created
December 4, 2014 16:03
-
-
Save gonzaloserrano/ca4c3ab2298aa72f1454 to your computer and use it in GitHub Desktop.
readable debug_backtrace
This file contains hidden or 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
$callStack = rtrim(array_reduce( | |
array_reverse(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)), | |
function ($result, $call) { | |
return $result .= (isset($call['class']) ? $call['class'] . ':' : '') . $call['function'] . ' -> '; | |
} | |
), ' -> ') . "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment