Got this message: firep($item, $optional_title)
xira - December 31, 2008 - 09:31
| Project: | Drupal For Firebug |
| Version: | 6.x-1.x-dev |
| Component: | Firefox Extension |
| Category: | support request |
| Priority: | normal |
| Assigned: | xira |
| Status: | closed |
Jump to:
Description
I installed both the Firefox Extension and the Drupal Module. Then I granted permissions to everyone AND logged in as admin. Finally I doubled checked (custom Theme) and I have the $closure at the end. None the less it isn't working and I get the following message:
There were no messages sent to the general log. Please use "firep($item, $optional_title)" to output messages to this console.
Where do I put that code? What am I not understanding here?
Thanx

#1
The general log will provide debugging information in the Firebug window if you specify, in the code, a specific debugging call. You need to use firep() in the code to have its output show up there. I think the best way to think about firep() is to think about it as a print_r($item) that shows up in the Firebug window.
#2
I'm getting the same error in the General tab.Where exactly does one put the debugging call -- in the PHP code one is developing, the drupal-for-firebug module, one of the *.tpl.php files? And is this the debugging call -- firep($item, $optional_title)? Tks, sorry for the noob question...
#3
#4
no problem on the question, its one thats helpful and i think we can expand the documentation to give more information.
firep() is a global function that can be put in either the theme layer or module files to take a PHP object (string, array, object, etc) and output it to the firebug window. it works similarly to the dpr() function in devel module or print/print_r in PHP.
#5
Sorry if I am missing something, but I still do not understand where exactly to put this code...?
#6
Please explain exactly where to put this function.
Please tell what file to open and where to put it in the file.
Thanks
#7
I am getting the same thing and am struggling to get Drupal For Firebug working... Any ideas how this would be implemented?
#8
I've had the same problem with firep() not printing anything into Drupal->General console. But that was my fault as I've placed firep() in a wrong place - inside page.tpl.php. I've peaked under the hood of Drupal for Firebug module and it is rendering all its content in hook_footer.
So to get valid output from firep() into Drupal->General console the last place in code execution path you can put firep() it is template.php file.
In the other words you can place firep() anywhere in your modules code (or other modules you debug) with the exception of template files.
If you want to debug template files you need to use FirePHP library with FF add-on. Just do following:
Note:
FirePHP will log messages under Firebug Console tab.
For more advanced usage check http://www.firephp.org/HQ/Use.htm