BugFu Console Debugger

Plugin Banner

BugFu Console Debugger

by Federico Andrioli

Download
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

  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
  1. The admin page when BugFu is ON

    The admin page when BugFu is ON

  2. The Browser JavaScript Console when BugFu is ON

    The Browser JavaScript Console when BugFu is ON

  3. The admin page when BugFu is OFF

    The admin page when BugFu is OFF

Nice when it works, often doesn't

By synthezoid on February 13, 2024

Totally broken with Litespeed cache, instantly causes out-of-memory errors and other seriously unreliable operation including failure of pages to load with "there has been a critical error on this website". Abandoned many years ago, developer hasn't responded in support forum in 6 years and github repo not updated in 3 years. Too bad, it was an extremely useful plugin when it worked.

Easy to use & very helpful

By Martin Sauter (martin.sauter) on November 29, 2022

Nothing else to add.

Exactly what I need

By alexd3d on October 8, 2022

Exactly what I need - simple and genious! Thanks!

Great for quick debugging

By hazardawareness on June 9, 2021

When you can't be bothered to setup xdebug or if you're trying to debug on a server you don't have access to - indispensable

Easy to use and works well

By dmccan on December 9, 2020

This is a nice plugin to use in concert with the Chrome dev console. It is easy to use and works well. Thank you for making it available.

The plugin to have.

By Rivmanbx33 on October 24, 2020

Debug on some productions sites, when duplicating and installing in local environment is not possible, or the configuration is not the same, can be difficult, and using var_dump on a production site is not indicated. While critical errors and notices can be catch by wordpress debug log, using this masterpiece of plugin can help to identify what's happening in the steps of executing a plugin or theme. Great work, and sincerely thank you !

Beautiful, Simple, Life saver

By heathgmorris on August 14, 2020

Not much more to say. Great, simple plugin for debugging PHP stuff through the JS console. Line numbers being included is a great touch. Maybe better programmers have better practices and more efficient tools for this sort of thing, I have no idea, but for me it was a life saver. It has been great for figuring out bugs in other people's plugins which I've never touched before. Thanks for making this, and for making it free!

simple and functional

By gbaruzzi on July 14, 2020

I am an old programmer who got the task to code in PHP for WordPress. Not understanding well the WordPress model and the language, this debugger saved me the day! Now I am ready to dive deeper into WP. Thank you for the excellent work! Giovanni

if you write PHP for WordPress, you'll want it

By Our Oakland (ourakland) on September 15, 2019

Debugging PHP in WordPress had always been hit-or-miss, until I found BugFu. The plugin worked right away, no extra messing around with other things to install. Love it.

Very useful !

By Bill Minozzi (sminozzi) on August 6, 2019

Must have for developers.

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
Back to top