wp pear debug

By : unknown

This plugin incorporates the pear php_debug library into wordpress.

I started creating a new website around wordpress and noticed that there was no way to quickly access debug information so I integrated this class into wordpress for quick easy debugging when developing or experiencing problems on your wordpress website.

Please feel free to ping me on twitter if you have a question.

  • Features

This plugin unlike most operates from within a class. There are several options which can be set in the admin section

  1. Debug Status: Overall this option allows you to enable and disable debugging entirely
  2. Display Debugging for: Guests This option allows you to enable debugging when no user is logged in
  3. The rest are a list of roles found in the sytem, eg. editor, contributor, administrator For each you have the following options: Admin & Front End, Admin Only, Front End Only, Disable
  4. The plugin shows queries that were run by wordpress Please note that some queries run before the plugin is initialized. to ensure most if not all queries get recorded see step 4 in installation section. v1.4.1 shows not only the query but the time taken by the query and the function which called the query.
  5. You can easly add debug information to the debugger by making use of several functions

    <?php //For advanced use. //Direct access to instance of debugger $oDebug = wp_pear_debug::get();
    $oDebug->add($variable); //add variable to debug $oDebug->dump($object,$varname); //var_dump an array or object. $varname optional $oDebug->queryRel($info); //add query related info $oDebug->error($info); //add user error //more options available in the pear::php_debug documentation

    `//With v1.2 you have access to several wrapper functions`
    `//Enough for most people`
            `wp_pear_debug::add();`
            `wp_pear_debug::dump();`
            `wp_pear_debug::error();`
    `//if you run this query with wpdb`
    `//It will probably appear anyways.`
            `wp_pear_debug::query();`
    

    ?>

  6. Debug information appears in a neat panel controlled by javascript. The options expand and collapse. The debug panel also has a close button to completely remove the debug panel.

  7. Note that the debug bar floats at the top right and will not disrupt your layout.

  8. To ensure layout stability the plugin is hard coded to use only the HTML Div Renderer

  9. displaying server and response varables.

    • Request
    • Response
    • Setings
    • Globals
    • Php
    • Files
    • Database queries
    • Execution time
    • Errors and messages
    • Link to w3c validator
  10. With v1.2 you can add debug information via shortcode from within your post. [wp_pear_debug]foo bar[/wp_pear_debug] or you may use: [wp_pear-debug foo="bar" foo1="bar2"]

  11. Internationalization support has been added with version 1.4.6. A rough spanish translation has been provided in the hope that someone can take it and create a better translation.

P3 (Plugin Performance Profiler)

This plugin creates a profile of your WordPress site's plugins' performance by measuring their impact on your site's load time.  Often times, WordPress sites load slowly because of poorly configured plugins or because there are so many of them. By using the P3 plugin, you can narrow down anything ca.........

Similar: 34%

MySQL Profiler

MySQL Profiler displays debugging information about SQL queries to admin WordPress users. For each query, the profiler displays the time, syntax-highlighted SQL, and a trace of the functions (as well as the file and line number that the functions were called from) that were called. The list can be.........

Similar: 28%

Query Monitor

Query Monitor is a debugging plugin for anyone developing with WordPress. It has some advanced features not available in other debugging plugins, including automatic AJAX debugging, REST API debugging, and the ability to narrow down things by plugin or theme. For complete information, please see Qu.........

Similar: 25%

Debug Objects

The Plugin Debug Objects provides the user, which has the appropriate rights, normally the administrator, a large number of information: query, cache, cron, constants, hooks, functions and many many more. Values and content get displayed at the frontend and backend of the blog, to analyze errors but.........

Similar: 25%

System information

Adds a system information page that include all the details on your WordPress configuration. That include server details, php configuration, WordPress configuration, current theme details, plugins details and hooks details. That allows for an easy copy/paste of the information you usually need to co.........

Similar: 24%

Wixiweb FirePHP Queries

Use Firebug with FirePHP to analyze the SQL queries made by WordPress. Ideal for development and avoid performance issues. ...

Similar: 23%

Custom Error Log

Custom Error Log allows you to create custom errors in your WordPress theme or plugin with a single function. Great for debugging those long and complex scripts. Each error can have its own error message making it a lot easier to pin down specific issues in your code. You can also log notices for l.........

Similar: 22%

Quick Cache (Speed Without Compromise)

/*************************************************************/ NOTICE: This plugin is no longer maintained. Quick Cache is now ZenCache! See also: ZenCache on WordPress.org /*************************************************************/ If you care about the speed of your site, Quick Cache is o.........

Similar: 13%

bodi0`s Easy cache

Easy cache takes a real-time snapshot of every Page, Post, Category, Link, etc. These snapshots are then stored (cached) into folder of your choice, so they can be referenced and served to the visitor later, in order to save database processing time that has been slowing your website down. The Easy.........

Similar: 13%

Zen Cache

If you care about the speed of your site, ZenCache is one of those plugins that you absolutely MUST have installed :-) ZenCache takes a real-time snapshot (building a cache) of every Page, Post, Category, Link, etc. These snapshots are then stored (cached) intuitively, so they can be referenced late.........

Similar: 10%