Marco's Extended Debug for Joomla
Questo plugin estende le funzionalità di base del plugin Debug distribuito con Joomla, aggiungento diverse informazioni quali il dump delle variabili GPC (get, post, cookie), ildump delle variabili di sessioni, ma, soprattutto, la possibilità di limitare l'invio delle informazioni di debug a determinati IPs o a specifici networks .
(Versione Italiana: a breve, spiacente)
Extended Debug Info for Joomla!
This extension is also published on http://extensions.joomla.org, if you like it, vote it or write a review, thank you.
Marco's Extended Debug is a partial rewrite of the base System - Debug plugin distributed with Joomla!.
It extends the basic functionality by adding other information such as the dump of GPC variables (GET, POST, cookies), the dump of the session variable, but, above all, adds the ability to limit sending debug information to specific IPs or networks, so you can use it on production machines. It can also send debug info to: front end only, back end only or to both interfaces.
From version 2.6 Marco's Extended Debug can also log PHP errors, this avoid that php error messages break page layout or block jscript, ajax or jquery. You can also set how many error to log: this avoid 'infinite' html page if the error is in a loop like for, foreach or while!
please note, from PHP site: The following error types cannot be handled with a user defined function: E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR, E_COMPILE_WARNING, and most of E_STRICT raised in the file where set_error_handler() is called.
- Can limit output to single IPs like 192.168.10.2 or entire networks like 192.168.1.0/24 or combinue values
- Can limit output to front end, back end or send it to both
- Dumps requests in $_POST, $_GET, $_COOKIES
- Dumps VALUES in $_SESSIONS
- Dumps remote client info (IP, referres, method)
- Add specific css classes and IDs for better reading (add also css file)
- log php errors (v2.6+)
Note:
It's a developers' plugin.
Additional Set up
- Side to display information
side to which send debug information (Both, BackEnd, FrontEnd) - Display only to specific IP(s):
comma separed list of IP which should display debug info; you can insert single IPs or networks: 192.168.10.2,192.168.1.0/24 means 192.168.10.2 and ALL IPs from 192.168.1.1 to 192.168.1.254 (no broadcast, zero by your router config)
Surely this is one of the most important enhancement - Display remote client Information
Display remote address, browser type, referrer, query string and method (GET, POST) - Dump NameSpaces
options are:- Get
- Post
- Cookie
- Request
- Get, Post
- Get, Post, Request
- Get, Post, Cookie
Select which superglobal arrays to inspect and dump.
- Display Session vars
Dumps values in $_SESSIONS array - Log PHP Errors
log php errors avoid output messages in the middle of HTML
Surely this is one of the most important enhancement - Max error to log
max error to log before to stop to log this kind of error (usefull for errors in loops) - Side to display information:
Send debug info to: front end, back end, both - Add additional css
Add a css for formatting. some templates/plugins save js and css in cache for preformance, so REMEMBER to empty /cache dir after enable/modify css
Standard Set up
Please, refer to Joomla! docs for standard settings.
Quick instructions
- install the plugin, set the same execution order of 'System - debug' default plugin
- enable it ;)
- disable 'System - debug' default plugin
- enable debug in Global Configuration - System
- on production machine fill the 'Display only to specific IP(s)' field with your IP or network
HISTORY
Version 2.6 (Nov 2nd, 2013) Joomla! 2.5 release
- PHP Error Logging
Version 2.5.1 (Sep 26th, 2013) Joomla! 2.5 release
- Side selection
- Disable CPG
Version 2.5.0 (Sep 25th, 2013) Joomla! 2.5 release
Version 1.5.1 (Sep 5th, 2010) first release for Joomla! 1.5
Download Marco's Extended Debug for Joomla!
Joomla! 2.5
Joomla! 1.5 (discontinued)
Commenti
That worked!(althoug h there are some typos in the link you send me)
How can i see the slowest queries fast? It would be nice to have such a feature!
Question: how can we see the time required for each query? Would be really nice and useful to find slow queries!
Rgrds,
Chris
===Answer
Hi Chris,
thank you a lot for the review!
you can't log the time used by each query without a little hack to the joomla code.
I wrote an article about this:
mmleoni.net/.../...
It's in Italian, but you can use Google to translate it: it's no Shakespeare, sure, but you can read it.
have a nice day,
marco
this is a great plugin but how can I remove the strict standards php errors in the public website when debug mode is on ?
This kinds of defeats the use in a production website with php 5.4 ?
===Answer
Hi,
most of E_STRICT error types cannot be handled with a user defined function, this is a PHP restriction.
Anyway you can change line 90 of the plugin and replace the last "-1" with the preferred combination of error costants (see PHP manual).
In a production site? a warning means: something could go wrong...
take your own considerations.
PS: if you like it, vote it or write a review... ;)
bye,
marco
===Answer:
Thank you, this is really a great idea ;)
now version 2.6 can do it!
bye,
marco
RSS feed dei commenti di questo post.