Just a quick one. You probably already use debug_backtrace (and if you don’t, use it!). I’ve written this quick bit of PHP that basically just tells you the function stack (i.e. strips args and object, thus leaving no junk!)
echo "<pre>"; $bt = debug_backtrace(); for($i = 0; $i < count($bt); $i++) { unset($bt[$i]["args"]); unset($bt[$i]["object"]); unset($bt[$i]["type"]); } var_dump($bt); echo "</pre >";
January 22nd, 2010 at 12:19 pm
I keep meaning to do this, but never get round to it. Thanks for saving me the effort.