Logfile Debugger

Small tool for developers to make debugging more easy (and fun)!

Author:Philipp Stracker (profile at wordpress.org)
WordPress version required:3.0.1
WordPress version tested:3.8.1
Plugin version:1.3
Added to WordPress repository:11-02-2014
Last updated:16-03-2014
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:1
Plugin URI:
Total downloads:405
plugin download
Click to start download

This plugin is intended to be used by WordPress developers, during development.

Logfile Debugger basically provides you with 3 new methods:

  • wp_debug(var1, var2, ...)
  • wp_debug_trace()
  • wp_describe(var1, var2, ...)

The first two methods will add a new entry to a log file, the last method will dump all specified variables on the screen.

Now the cool part: The plugin also provides a new admin section to view the log file (check the screenshot)! This viewer can even be opened in a stand-alone popup/separate tab.

Attention:

For security reasons this plugin should only be used on a development environment! Every user that is logged in to WordPress can potentially read the log-data. It is your responsibility as a developer to take make sure that no sensitive data is made available to other WordPress users via the logfile.

Recommended usage:

You should always test if the debug function exists before calling it. This prevents unexpected errors in cases where you forget to remove the wp_debug() or wp_describe() calls form the code while testing your plugin/theme on installations that do not have the logfile-debugger plugin installed.

Example:

function_exists( 'wp_debug' ) && wp_debug( 'Current WP object: ', $wp );