=== SM Debug Bar === Contributors: Sethmatics Inc feat. Seth Carstens Donate link: http://sethmatics.com/extend/plugins/sm-debug-bar/ Tags: developer, debug, admin bar Requires at least: 3.1 Tested up to: 3.1.2 Stable tag: 1.0.0 Developers who want to use PHP to print any variables, arrays and objects out onto the page can now do so without completely wrecking the page layout == Description == Developers who build plugins and themes everyday know the constant hassle of finding the proper place to print out PHP variables and objects to see whats going on. This plugin will help you with that process by giving you a simple function to call, that automatically appends a printed version of your variable/object/array and sends it to a hidden DIV that only loads when the admin bar loads, and only loads when logged in with administrative permissions in wordpress. So whats the catch? Well, using utilities like this always prooves difficult because knowing how it works is often complex. We have simplified the process as much as possible. Here is an example: USAGE 1. You built a new array thats holding some custom meta data loaded on the page. 2. For some reason, you think its empty, or the values are not acting like you expect. 3. Next step is typically to print it out right? 4. With this plugin activated, simply add the following to your file without the quotes "dbug($myarray);" 5. Maybe its 4 arrays and a string you are trying to follow, no problem "dbug($myarray1);dbug($myarray2);dbug($myarray3);dbug($myarray4);dbug($mystring1);" 6. Now load the page, click the "Debug" link at the top of the screen, watch the debug menu slide out, and notice all your variables are printed nicely for your viewing. Widget provided by http://sethmatics.com/. Features include: * Secured so that only logged in administrators can ever see the Debug panel. * Ability to append as many variables for printing as desired. * Now COMPLETELY compatable with the premium "ClassiPress" theme which can be purchased at [ClassiPress](http://appthemes.com/cp/go.php?r=2505&i=b3 "www.appthemes.com") Features Coming in version 2 Next Version Updates: * jQuery styling and enhanced array viewing by animated "tree" like array exploring. Navigate your arrays like you would a files and folders. * currently only variables loaded before the HTML begins can be sent to the panel, we will offer a "post pageload" debug option using jquery docready. * code coloring - we realize grey and white is boring and difficult to read when you have alot of it. We plan to take care of that. * plugin options - currently we are not allowing any options to be chosen, but setting color formats, capabilities that can view the panel, and more. * front end code entry - we plan to offer a "textarea" where you could enter a set of variables you want printed so that you can debug vars without FTP (for portable developers) Don't forget to rate our plugin so we know how we are doing! == Installation == To install the plugin manually: 1. Extract the contents of the archive (zip file) 2. Upload the sm-content-widgets folder to your '/wp-content/plugins' folder 3. Activate the plugin through the Plugins section in your WordPress admin 4. There are no options, the debug panel will now be on the admin-bar. See usage in description for more info. == Changelog == - First version release == Upgrade Notice == Version 1.0.0 - Built debug bar architecture and tested only in Firefox. == Frequently Asked Questions == Q: How do I use the plugin? A: USAGE 1. You built a new array thats holding some custom meta data loaded on the page. 2. For some reason, you think its empty, or the values are not acting like you expect. 3. Next step is typically to print it out right? 4. With this plugin activated, simply add the following to your file without the quotes "dbug($myarray);" 5. Maybe its 4 arrays and a string you are trying to follow, no problem "dbug($myarray1);dbug($myarray2);dbug($myarray3);dbug($myarray4);dbug($mystring1);" 6. Now load the page, click the "Debug" link at the top of the screen, watch the debug menu slide out, and notice all your variables are printed nicely for your viewing. == Screenshots == 1. A sample of the debug bar with variables printed.