10+ Great Plugins For Debugging And Development

WordPress Console

Adds an interactive PHP console (REPL) to the WordPress admin. You can run arbitrary PHP code and access any function, class or variable defined by WordPress or active plugins. Amazing for debugging and exploration.

Note: At the time of this writing, the plugin directory listing says this plugin is only “compatible up to 3.3.2”, but in practice it works fine even with WP 3.5 beta. Tested it myself.

Developer

Helps you set up your development environment by making it extremely easy to install a number of recommended debugging and development plugins. For example, you can install and activate the excellent Debug Bar plugin (see below) with a single click.

Debug Bar

Adds a “Debug” menu to the WordPress toolbar that displays executed SQL queries, WP query information and object cache statistics. There’s a number of great debugging plugins that extend Debug Bar with additional features, some of which you’ll find listed below.

Debug Bar Transients

Adds information about transients to the Debug Bar. This plugin will display all transients grouped by type (i.e. custom, core, network-wide, etc) along with their values and expiration times. You can also easily delete a transient.

Debug Bar Console

Adds a PHP/MySQL console to the Debug Bar. Has a nice, clean interface and supports syntax highlighting. Any code you enter in the console will execute in the WordPress environment, so you can freely use any functions and classes defined in WP or active plugins.

However, unlike with the WordPress Console plugin mentioned above, you’ll need to explicitly declare global variables as global $var; to be able to use them, and new variables you create won’t be preserved between requests.

Debug Bar Action Hooks

Displays a list of hooks executed on the current page in the Debug Bar. Nice and simple.

Kint Debugger

Lets you dump variables and backtraces in a nicely styled, collapsible format. Basically, whenever you would use print_r() or var_dump(), use the d() function provided by this plugin instead, and your debug output will instantly become much easier to read. All variables and traces are displayed in a new panel in the Debug Bar so that you can find them all in one place.

Debug Objects

Displays a huge amount of debugging information in the page footer. This includes the PHP/MySQL/WP version, PHP configuration flags, WordPress cookies, filesystem information, superglobals like $SERVER and $COOKIE, all registered hooks, object cache stats, queued scripts and styles, Cron events, and much more.

What Template Am I Viewing?

This short and simple plugin displays the name of the current template file in the WP Toolbar (a.k.a Admin Bar).

Core Control

Lets you test and tweak various aspects of the WordPress core including the filesystem, HTTP, Cron, and plugin, theme and core updates. For example, it can list cron jobs, display the available HTTP transports and HTTP-related filters and constants, disable specific transports, log all outgoing HTTP requests, enable/disable filesystem APIs, force update checks, and more. All in all, this is a very powerful debugging tool.

Note: Though the plugin hasn’t been updated in a while, it works just fine with the latest version of WordPress.

Development Debug Backtraces

Displays a stack trace for every PHP error triggered by WordPress or a plugin/theme. This can be useful in situations where you need to find out what caused an error but don’t have enough access to install Xdebug on the server (e.g. client sites).

Alternative: Simple Error Handler

And A Few More…

Related posts :

5 Responses to “10+ Great Plugins For Debugging And Development”

  1. Frank says:

    Great list of plugins for developrs, thanks for share this and also thansk for list my plugins.

  2. Hi,

    Great list, nice to have it.

    I am just curious: did you check KC Tools plugin (http://wordpress.org/extend/plugins/kc-tools/) too? I would like to know your opinion.

    Krum Cheshmedjiev

  3. Jānis Elsts says:

    Thanks for the tip, I didn’t know about that plugin.

    I played around with it a little just now. First impressions: having a separate, encrypted password and a SSH-like console is nice, but other than that, it looks pretty basic. There are other plugins that do SQL and environment dumps better. Also, it displays some warnings and notices with WP_DEBUG enabled, which would be a little annoying if I were to use it in development.

  4. Thanks about review!

    Warning fixed, BTW.

  5. Jānis Elsts says:

    You’re welcome, and good job 🙂

Leave a Reply