>
Download This Plugin | |
Download Elegant Themes | |
Name | Logfile Debugger |
Version | 1.3 |
Author | Philipp Stracker |
Rating | 0 |
Last updated | 2014-03-16 01:49:00 |
Downloads |
115
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Logfile Debugger plugin added 12 bytes of resources to the Home page and 28 bytes of resources to the sample Post page.
Logfile Debugger plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Logfile Debugger plugin ads no tables to your Wordpress blog database.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 );