GetSimple Support Forum
How do you debug your PHP? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Off Topic (http://get-simple.info/forums/forumdisplay.php?fid=12)
+--- Thread: How do you debug your PHP? (/showthread.php?tid=1526)



How do you debug your PHP? - polyfragmented - 2011-04-09

y0,

what do you guys use for debugging your PHP? I asked this in my plugin thread, but maybe the question will get a bit more exposure here.

mvlcek replied over there that he uses echo and GS' debug mode.

Suggestions, experiences? Much appreciated.


How do you debug your PHP? - ccagle8 - 2011-04-09

i also do the echo and print_r() functions. I print_r() almost everything, everywhere in the code before I get it working and in production mode.


How do you debug your PHP? - polyfragmented - 2011-04-09

ccagle8 Wrote:i also do the echo and print_r() functions. I print_r() almost everything, everywhere in the code before I get it working and in production mode.
I can see where it can come in handy now:

Code:
print_r($filters);
print_r($plugin_info);
print_r($plugins);