php - CodeIgniter Pretty Debugging Output -


Actually what I want to do is set up a switch somewhere: $ debugging_mode = 0 or 1 < / Code> which will allow me to attach a properly formatted output under my thoughts.

I have written a library with a lot and I have some output like this:

  var_dump (array_before_operation) echo; // some operations var_dump echo (array_after_opertion); // Some things resound "We have exactly 3 matches!";   

My question is, what is the most obvious way to get beautiful debugging output? (I know about CI profiler, but I still have some extra requirement)

Where is a good place to set global debugging mode? I know that the Zend Framework has a development or production setting. The Htaccess file is in, but I do not think that in CI

should I use PHP's native output buffer to collect my debugging stuff? So how can I add that scene?

Thank you for your thoughts and women!

Global debugging mode: Use config class The cleanest way: text file

Comments