Last active
November 4, 2020 13:14
-
-
Save 0m3r/ddc3547d70c33cf5463d to your computer and use it in GitHub Desktop.
ligth php debug_backtrace
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 | |
$trace = debug_backtrace(); | |
foreach ($trace as &$call) { | |
unset($call['object']); | |
unset($call['args']); | |
} | |
echo '<pre>'; | |
print_r($trace); | |
echo '</pre>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment