- Paul Annekov aka SteelRat - http://www.steelrat.info/en -
Configuring Debug Bar
Posted By SteelRat On 26.01.2012 @ 20:35 In WordPress | No Comments
Today I want to tell you about configuring of beautiful plugin, must have for WordPress developers – Debug Bar [1]. It allows you to see debug info on any page of the site. I need it to see debug info secretly (which doesn’t allow WP_DEBUG). More details about plugin and one of the “pitfalls” under the cut.
Plugin adds “Debug” menu item at the right part of Admin Bar.
When WP_DEBUG and SAVEQUERIES are disabled it shows:
WP_DEBUG (tracks PHP Warnings and Notices to make them easier to find) and SAVEQUERIES (mysql queries are tracked and displayed) options must be enabled for fully functioning. Read this [4] to toggle options.
Such items will be added to Debug Bar menu if options are enabled:
Also “Debug” menu item will be colored depending on errors during page generation, if WP_DEBUG option is enabled.
I don’t understand, why this problem wasn’t described on plugin page. As we all know, the errors will be displayed on page if debug is enabled regardless of user authorization state. We must not allow this. After a brief search, I found an excellent option – WP_DEBUG_DISPLAY, which disables errors displaying. Add it as previous options, but set its value to “false”. So we get all we want – plugin catches errors and displays them in its window, and we don’t see them on page.
Debug Bar – excellent tool for plugin developers, which allows tracking plugin’s errors and correct them promptly.
There were at least 3 addons for this plugin in WordPress repository at the time of writing:
Article printed from Paul Annekov aka SteelRat: http://www.steelrat.info/en
URL to article: http://www.steelrat.info/en/web/wordpress/configuring-debug-bar/
URLs in this post:
[1] Debug Bar: http://wordpress.org/extend/plugins/debug-bar/
[2] Image: http://www.steelrat.info/wp-content/uploads/debug-bar-screen-1.png
[3] Image: http://www.steelrat.info/wp-content/uploads/debug-bar-screen-2.png
[4] this: http://codex.wordpress.org/Editing_wp-config.php
[5] Image: http://www.steelrat.info/wp-content/uploads/debug-bar-screen-3.png
[6] Image: http://www.steelrat.info/wp-content/uploads/debug-bar-screen-4.png
[7] Debug Bar Console: http://wordpress.org/extend/plugins/debug-bar-console/
[8] Debug-Bar-Extender: http://wordpress.org/extend/plugins/debug-bar-extender/
[9] Debug Bar Query Tracer: http://wordpress.org/extend/plugins/debug-bar-query-tracer/
Click here to print.
Copyright © 2009-2011 SteelRat.