Make FirePHP debug aware.

2 messages Options
Embed this post
Permalink
AlexW () Make FirePHP debug aware.
Reply Threaded More More options
Print post
Permalink
Hi, first, thanks for a great application! This and Firebug make web programming much less of a headache.

How about making FirePHP debug aware?
e.g.

// In my headers
define("DEBUG", true);

// in fb.php
function fb(...) {
     if(defined('DEBUG') && DEBUG) {
          // Function contents
     }
     else {}
}


Thus I can saffely leave in any call to fb() in a production environment, so long as I define DEBUG false.
Christoph Dorn () Re: Make FirePHP debug aware.
Reply Threaded More More options
Print post
Permalink
Thanks for the suggestion.

There will be an option to enable and disable FirePHP via

$firephp->setEnabled(false);

in the final release. This will accomplish the same thing.