Installing FirePHP For Drupal
boz — Sat, 03/07/2009 - 07:55
I just found this and thought I'd pass it along. Firebug is an extension for the Firefox browser which provides a rich interface for JavaScript debugging among other features. FirePHP is an extension that allows use to leverage Firebug rich interface for PHP debugging. To install FirePHP for Drupal follow the instructions provided by FirePHP HQ.
- Download and enable devel-module from http://drupal.org/project/devel
- Create a folder FirePHPCore in the devel-modul-folder (modules/devel)
- Download the FirePHPCore library from http://www.firephp.org/HQ
- Unpack the FirePHPCore library and copy the lib folder to the FirePHPCore folder in the devel-module (modules/devel/FirePHPCore/lib)
The final file structure should be:
modules/devel/FirePHPCore/lib/FirePHPCore/fb.php
modules/devel/FirePHPCore/lib/FirePHPCore/FirePHP.class.php
For logging to Firebug use dfb() instead of fb(). Both functions take the same arguments. You can find a reference here.
<?php
dfb('Log message', FirePHP::LOG);
?>



Thanks alot!!!
Anonymous — Tue, 12/01/2009 - 22:01Thanks alot!!!
Thanks
Anonymous — Wed, 03/18/2009 - 11:50This was very helpful.