In most cases adding load of parameters for debugging to nearly every function is not only impractical, but also extremely time consuming.

Fortunately, as of PHP 4.3.0 there is a much more convenient alternative in the form of debug_backtrace() and print_debug_backtrace(). The later is only avaliable in PHP 5.0