Debug Simple

WordPress Debugging Without the Headache

Every WordPress developer eventually needs to debug their site. Plugin conflicts, theme issues, PHP errors – the standard solution is to enable WordPress debugging by manually editing wp-config.php, adding several lines of code, then remembering to turn it all off again when you’re done.

This process is tedious for developers and completely inaccessible for site owners who aren’t comfortable editing system files. Debug Simple eliminates that friction entirely.

The Problem

WordPress includes powerful debugging capabilities, but accessing them requires:

  1. Opening wp-config.php via FTP or file manager, or the web server’s Control Panel
  2. Adding or uncommenting multiple lines of code (WP_DEBUG, WP_DEBUG_LOG, WP_DEBUG_DISPLAY)
  3. Saving the file without introducing syntax errors
  4. Navigating to wp-content/debug.log to read the results
  5. Remembering to reverse all these changes when debugging is complete

For developers, this is annoying. For non-technical WordPress users who need to provide debug logs to support teams, it’s essentially impossible. And leaving debug mode enabled on a live site is a security risk – it can expose sensitive information about your site’s structure and configuration.

The Solution

Debug Simple provides a clean admin panel interface with four primary functions:

Enable/Disable Debug Mode – A single button toggles WordPress debugging on or off. Behind the scenes, the plugin uses WordPress’s mu-plugins (must-use plugins) system to manage the debug constants. When you enable debugging, Debug Simple creates a small controller file that WordPress automatically loads on every request. Disable it, and that file is removed. No manual file editing required. If Debug is already defined in wp-config or in the web server’s Control Panel, the plugin gracefully locks out its own enable/disable toggle, and acts solely as Debug Log manager.

View Recent Logs – The last 50 lines of your debug log display directly in the admin panel. No need to navigate through directories or download files via FTP just to see what’s happening. TheĀ  display is scrollable to read the entirety of the log.

Export to CSV – Need to share debug information with a support team or analyze it in a spreadsheet? The CSV export formats the entire debug log with timestamps and log entries in a structured format ready for analysis.

Clear Log with Backup – Debug logs can grow enormous on active sites, making them difficult to work with. The clear function creates a timestamped backup in the plugin’s backup directory before emptying the log file, so you never lose information if you need to reference it later. The backup directory is protected by .htaccess to prevent direct web access.

Why MU-Plugins?

The mu-plugins approach solves a specific technical problem. WordPress loads regular plugins after the core system initializes, which means they can’t define core debugging constants – those must be set earlier in the loading process.

Must-use plugins load before regular plugins, early enough to properly configure debugging. By dynamically creating and removing an mu-plugin file, Debug Simple can enable true WordPress debugging without requiring wp-config.php modifications.

If your WordPress installation doesn’t have an mu-plugins directory yet, Debug Simple creates it automatically.

Security Considerations

Debug Simple follows WordPress security best practices:

  • WP_DEBUG_DISPLAY is set to false, preventing error messages from appearing on the front-end
  • Log backups are protected by .htaccess rules
  • All admin actions require proper WordPress capabilities (manage_options)
  • AJAX requests use WordPress nonces to prevent unauthorized access

The plugin makes debugging accessible without compromising site security.

Availability

Debug Simple will be available as a free plugin in the WordPress Plugin Repository and on GitHub. It requires PHP 7.4 or higher and works with any modern WordPress installation.