Debug Print R

Tags: debug
Requires at least: 3.0
Tested up to: 4.3.1
Stable tag: 1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Description

Provides PHP variable debugging. Upon install, your IP address, along with 127.0.0.1, is saved as the default debug::enabled() IPs.

Installation

  1. Upload the entire plugin folder to the `/wp-content/plugins/` directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. To manage IP’s, go to: Plugins page > debug-printr > Settings

Usage

debug::print_r($var); // (mixed) $var is the variable you want to print to the screen

Frequently Asked Questions

  • Why doesn’t the file name and line number show up sometimes?
    This plugin uses the PHP function debug_backtrace(), which may not be available on your system. You may pass in the file and line as arguments #3 and #4 respectively.

Screenshots

  1. Example of: global $post; debug::print_r($post);
    screenshot-1
  2. Add each IP or Hostname on its’ own line.
    screenshot-2

Changelog

  • 1.0: Initial plugin development and testing.

Upgrade Notice

  • 1.0: Upgrade? More like init.

Leave a Reply

Your email address will not be published. Required fields are marked *