BugFu Console Debugger

Description

Log/Debug the PHP code in your Theme/Plugin with your Browser Console (no extension needed). Made for themes and plugins developers.

HOW TO CHECK IF BUGFU IS WORKING

Open your Browser Console, if you see this header, BugFu is working properly

################################
#### BugFu Console Debugger ####
################################

HOW TO OPEN YOUR BROWSER JAVASCRIPT CONSOLE

If you’ve never used the Browser JavaScript Console before, here’s how you open it:

  • Chrome PC shift+ctrl+j – Chrome Mac alt+cmd+j
  • Firefox PC shift+ctrl+k – Firefox Mac alt+cmd+k
  • Safari PC shift+ctrl+c – Safari Mac alt+cmd+c

HOW TO USE BUGFU WITH WORDPRESS

Call the log static method from wherever you are within the WordPress PHP code

<?php /* WORDPRESS CODE HERE */

/* Call it with no arguments to only output some backtrace info */
BugFu::log();

/* Call it with a string argument to output that string content */
BugFu::log($my_string_content);

/* Call it with a non-string argument to output the structured
   representation of that argument - it uses var_export() */
BugFu::log($my_object-array-variable);

/* Call it with the second optional argument set to "false"
   to turn off the backtrace info (which is on by default) */
BugFu::log($my_content, false);

DEVELOPERS

Official Github repository:
https://github.com/fedeandri/bugfu-console-debugger

Screenshots

  • The admin page when BugFu is ON
  • The Browser JavaScript Console when BugFu is ON
  • The admin page when BugFu is OFF

Installation

  1. Unzip the plugin file bugfu-console-debugger.zip
  2. Upload the unzipped folder “bugfu-console-debugger” to the /wp-content/plugins/ directory of your WordPress blog/website
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

Reviews

October 21, 2017
This is a great tool especially if you are used to the ease of using console.log() for javascript. The only downside is it can slow down a site quite a bit - page refreshes can take a while depending on what you are logging.
Read all 9 reviews

Contributors & Developers

“BugFu Console Debugger” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.3

  • Adds the ability to log from the WordPress login page
  • Fixes a minor CSS issue

1.2.4

  • Adds compatibility with old PHP versions (tested from 5.3)

1.2.3

  • Updates and simplifies the AJAX calls debugging feature

1.2.2

  • Prevents PHP notice when not logging from a class

1.2.1

  • Update the AJAX calls debugging feature to avoid CPU overload

1.2

  • Adds the ability to debug AJAX calls

1.1

  • Fixes a bug that made it look like BugFu constantly needed to be updated (thanks to Jonathan Bossenger)
  • Adds a second optional argument to the log method, in order to allow you to turn off the backtrace info which is on by default

1.0

  • First version, log your debug messages from PHP directly to your browser JavaScript console