PHP debugging: breadcrumb all functions and their callees from anywhere
This is just a little snippet that I wrote whilst trying to debug some dodgy MYSQL calls that were causing problems. It allows you to backtrace all functions and files that have led to the problem, mapping it through a breadcrumb of sorts. REALLY helpful when tracing other people’s code also… function get_callee() { // relies on debug_backtrace(); $retstring =… Read more →
Recent Comments