Trying to debug PHP using its default current-line-only error messages is horrible. How can I get PHP to produce a backtrace (stack trace) when errors are produced?
set_error_handler() + debug_backtrace() + debug_print_backtrace() in PHP5
set_error_handler()
debug_backtrace()
debug_print_backtrace()