Top menu



Wascou.org / Blogs / Maxime THOMAS / Firefox Extension to ease debugging




Firefox Extension to ease debugging

Here's the first release of eZDebug.

The functionnalities of this extension are to browse dynamically the debug of eZ publish. When you are developping you can have a lot of issues in one template and loose time seeking where is the problem. Of course, you will look at the debug but if there's a lot information, you won't be able to find it quickly.
So you can do it clicking on the right corner of Firefox or doing a CTRL + SHIFT + Q.

Another interesting functionnality is that you can flush the page, cleaning the debug. You just have to click on the clean checkbox and then the Go button.

You can also filter on the type of debug message you are seeking.
The next step it to do the same for the attribute(show) operator. It already works for a attribute(show,1), but I except some problems to create several levels in the tree.

Download available here :

http://ez.no/developer/contribs/3rd_party/firefox_ez_debug_extension

Comments

1. Superbe projet... vivement la suite !

Bravo pour cette première version !

J'ajoute ma petite feature wishlist :

* une icône de couleur différente dans la barre de menu quand il y a une erreur / un warning (comme l'extension HTML-Validator)
* coloration syntaxique des messages de la trace, en particulier pour les erreurs et les warnings
* le rafraichissement automatique de la trace au fil des pages visitées (sauf erreur, il faut actuellement scanner manuellement chaque page)

Bon courage et vivement la suite !

2. Nice to learn project is not dead

Good luck to complete this stuff.
Sure attribute_view_gui debug will be a great point.

PS: ReCaptcha is really disastrous... I've tried 10 times to post this §$%&$%&/ comment before to understand how it's working now...

3. New versions

Hi,

Two new versions are in the pipe :
- the first is the version of the extension in Firefox 3
- the second one will be able to parse more things (like attribute view _gui output).

I'm working, I'm working....

4. FF3

Sounds really interesting... but not working for Firefox 3.x
Do you think to update it in the future ?
Thanks.

5. Cool!

Very good. Adding a screenshot to the blog post would even make it better

My own personal suggestion (maybe a little bit outside the scope of this extension): implement a "debug" tpl operator, like $mydata|debug('info').
This has the advantage that it will not eat your pages like attribute(show) does, and when you goto prod, you can leave it in your tpls and only have the debug prints logged...

code for the operator should look something like this (2 b wrapped in std operator class skeleton):
function eZdebug( $msg, $debuglvl )
{
switch( $debuglvl )
{
case 'notice':
eZDebug::writeNotice( $msg );
break;
case 'debug':
eZDebug::writeDebug( $msg );
break;
case 'warning':
eZDebug::writeWarning( $msg );
break;
case 'error':
eZDebug::writeError( $msg );
break;
}
// il faut vider le contenu, ou ca va s'afficher sur la page
return "";
}