Output a Stack Trace

Sometimes when you’re debugging it can be handy to have access to a stack trace. You can use the debug_backtrace() function to generate a data structure that will give you insight in the order functions called:

print_r( debug_backtrace() );

Bon App├ętit!

Tagged with: