ZFDebug 1.5 is ready
21st May, 2009 |
12 Comments
ZFDebug, previously known as Scienta ZF Debug Bar, has reached version 1.5 with lots of new functionality and a new home with GoogleCode.
- Rewritten with modular plugin structure
- Time plugin shows average request time
- Registry plugin with content of Zend_Registry
- Cache plugin with Zend_Cache and APC information
- HTML plugin with W3C validation
- Memory plugin supports the
mark() method to calculate delta memory usage
- File plugin shows file count, file size
- Debug bar remembers visibility across reloads
Visit the ZFDebug homepage and have a look. As always, keep the good suggestions and bug reports coming.
« The Black Box of Wolfram Alpha
– The Moon Landing 40 Years Later »
2 fixes.
1. If you start ZFDebug from Bootstrap.php - you must manually start the db resource/s
2. In examples $basePath is shown, but actually $base_path is used in File plugin source
code for Bootstrap.php with fixes (for Cache plugin you must use similar tactics as used for $db in my example)
protected function _initZFDebug()
{
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader-registerNamespace('ZFDebug');
$options = array(
'plugins' = array('Variables',
'Database',
'File' = array('base_path' = realpath('../')),
'Memory',
'Time',
'Registry',
//'Cache' = array('backend' = $cache-getBackend()),
'Exception')
);
if ($this-hasPluginResource('db')) {
$this-bootstrap('db');
$db = $this-getPluginResource('db')-getDbAdapter();
$options['plugins']['Database']['adapter'] = $db;
}
$debug = new ZFDebug_Controller_Plugin_Debug($options);
$this-bootstrap('frontController');
$frontController = $this-getResource('frontController');
$frontController-registerPlugin($debug);
}
Being a novice in this exiting business area I have really enjoyed reading your comments. It is a nice topic in these turbulent times; make profits from websites. Sounds easy once done I guess for a newbie there seems a long and hard way to walk before the dreams are coming through. I guess that a very hot issue must be to prove that the website you make will be the winner or at least among the 10 best on the search engines and of course to ensure that the investment will prove to be profitable. Another important issue is communication, do we understand the language spoken by our target group, if not all investments is lost and you lose credibility as well instead of building customer loyalty.
Thanks for the report, SM. I've updated the installation instructions on the googlecode homepage accordingly.
$this-bootstrap('frontController');
$frontController = $this-getResource('frontController');
$frontController-registerPlugin($debug);
}
There is issue if you dont use Zend_Application and you use own plugin for settting database connection, then profiling wont work, because ZFDebug expects existing instance of $db in constructor, altough he does not need it anyway. (Only for enabling profiler)
IMHO he should try to retrieve $db instance after dispatching as well...
Hello - I am using jquery and ajaxsubmit on forms. when i have the debug bar loaded, something is breaking jquery and does not submit my forms using ajax.
any ideas?
yuva
25th September, 2009
I am using ADODB how to configure in ZFDebug
'Database',
'File' = array('base_path' = realpath('../')),
'Memory',
'Time',
'Registry',
why?
'File' = array('base_path' = realpath('../')),
if ($this-hasPluginResource('db')) {
$this-bootstrap('db');
$db = $this-getPluginResource('db')-getDbAdapter();
$options['plugins']['Database']['adapter'] = $db;
}
Wow, this is one of the most brilliant ideas I ever saw!
Simple and effective.
protected function _initZFDebug()
{
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader-registerNamespace('ZFDebug');
? ? ?
Post A Comment
You need JavaScript to post comments.