WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Tonya Mork v1.0.1

Debug Toolkit

Code debug made easier and more enjoyable.

Debug Toolkit

The facts

Rating
5★ from 13
Active installs
20+
Price
Free
Last updated
11 Mar 2019
Added
Mar 2019
Requires WP
4.9
Tested up to
WP 5.1.24
Requires PHP
5.6
Downloads
9,151

Our analysis

AI-assisted

Debug Toolkit is a WordPress plugin designed to assist developers with debugging their code. It enhances the PHP error interface using Whoops, providing a more user-friendly view of errors, including links to search engines and an interactive call stack. Additionally, it offers improved variable inspection tools, replacing the basic PHP functions with more advanced options from Symfony and Kint.

This plugin is suitable for developers looking for a more efficient way to debug their code within the WordPress environment. It simplifies the debugging process by providing interactive tools and better visualisation of errors and variable data.

Best for: Developers looking for enhanced debugging tools in WordPress.

What it does well

  • Improves PHP error interface with Whoops
  • Offers interactive call stack for error tracking
  • Includes advanced variable inspection tools like VarDumper and Kint
  • Provides links to search engines for error messages
  • Compatible with PHP 5.6 and above

Where it falls short

  • Limited information on additional features
  • Directory score indicates potential areas for improvement

Verdict

Debug Toolkit provides useful features for debugging in WordPress, particularly for developers who require more than basic error reporting and variable inspection.

From the developer

Tonya Mork's own description of Debug Toolkit, lightly tidied.

Debug Toolkit makes debugging your code easier and more enjoyable. It provides you with interactive and helpful tools:

  • Better PHP error interface from (Whoops)
  • Better variable inspection – no need to use var_dump, print_r, or X-debug
  • An interactive way to back trace the program’s execution order

Better PHP Error Interface from Whoops

The built-in PHP error container is basic and not as helpful as it could be. On top of that, it’s rather ugly. Wouldn’t you agree?

Whoops gives you a cool interface that is helpful, interactive, and quite nice to look at. Some features:

  • Provides the error message and links to search Google, DuckDuckGo, and Stack Overflow.
  • Shows the actual code where the error occurred.
  • Provides an interactive call stack. Click each and the actual code appears in the viewer panel.
  • Environment and details including GET Data, POST Data, Files, Cookie, Session, Server/Request Data, Environment Variables, and Registered Handlers.

See the tools in action in this video

Better Variable Inspection

Though X-debug is powerful, it can be difficult to set up and run. For that reason, it’s common to dump or print out the variable to browser. But the built-in display for the PHP var_dump and print_r is basic.

This plugin includes both two very popular variable dumper tools:

VarDumper provides a simple container that displays where you place it.

On the other hand, Kint provides a more powerful interface that gives you more information such as printing out the expression that was passed into it, the data type, memory size, and the value.

To make it even easier, the following utility functions are available for you to use in your code:

Available Functions for Inspecting Variable Values

Let’s explore the functions that are available for you through this plugin. We’ll use the variable inspectors to dump global $post.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for developer tooling.

WPCode

WPCode

93

Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...

Free 3M+ installs 4.9★ (1,873)
Header Footer Code Manager

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...

Free 600k+ installs 4.9★ (309)
Admin and Site Enhancements

Duplicate post, post order, image resize, email via SMTP, admin menu editor, custom css / code, disable gutenb...

Free 200k+ installs 5★ (421)
Shortcoder

Create custom "Shortcodes" easily for HTML, JavaScript, CSS code snippets and use the shortcodes wit...

Free 100k+ installs 4.9★ (227)
Insert PHP Code Snippet

Add PHP code to your pages and posts easily using shortcodes.

Free 90k+ installs 4.9★ (705)
Code Snippets

An easy, clean, and simple way to enhance your site with code snippets.

Free 1M+ installs 4.7★ (509)