Home Plugins wp marvelous debug
WP Marvelous Debug logo

WP Marvelous Debug

by Pablo Pacheco on WordPress.org

Edit the debugging constants from wp-config, view the log file on the Dashboard and more debugging features.

(0)
WP Marvelous Debug - Screenshot 1

This plugin allows viewing the log file (debug.log) on the Dashboard and editing the debugging constants from wp-config.php. It also provides other debugging oriented features.

The log file is loaded on the Dashboard (Tools > Log File) using the /SplFileObject class, optimized for memory usage, and it will use a pagination in order to load only some lines from it.

The plugin will try to enable WP_DEBUG and WP_DEBUG_LOG to true and disable WP_DEBUG_DISPLAY on its first run and will try to do the opposite when it’s deactivated.
You can change this behaviour if you want in the settings.

WP Config Constants

The wp-config.php is being edited using wp-cli/wp-config-transformer library, and these are the edited constants:

  • WP_DEBUG
  • WP_DEBUG_LOG
  • WP_DEBUG_DISPLAY
  • SCRIPT_DEBUG
  • SAVEQUERIES

Generate a reduced log file

It’s possible to generate a reduced duplicate log file (debug-reduced.log) from the original one loading only the last lines from it (something like the tail command from Linux).

Active installations10+
Weekly downloads
8+14.29%
Version1.1.0
Last updated3/28/2020
WordPress version4.4
Tested up to5.3.18
PHP version7.0.0
Tags
debugdebugginglogwpconfig