debug_backtrace echo '<xmp>backtrace: ', print_r( debug_backtrace( /*DEBUG_BACKTRACE_IGNORE_ARGS*/ ) ), '</xmp>';