WPCode
93Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...
Log/Debug the PHP code in your Theme/Plugin with your Browser Console (no extension needed)
BugFu Console Debugger is a WordPress plugin designed for developers to log and debug PHP code directly in the browser console. It allows you to output various types of information, including backtrace details and structured representations of variables, without needing any additional browser extensions.
This plugin is suitable for theme and plugin developers who need a straightforward way to troubleshoot their code. By using simple PHP method calls, you can easily see the output in your browser's JavaScript console, making it a practical tool for debugging during development.
Best for: This plugin suits WordPress developers looking for a simple debugging tool.
What it does well
Where it falls short
BugFu Console Debugger provides a basic logging solution for developers. It is useful for those who want to debug PHP code efficiently within their browser console.
Federico Andrioli's own description of BugFu Console Debugger, lightly tidied.
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:
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
Other plugins for developer tooling.
Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...
Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...
Duplicate post, post order, image resize, email via SMTP, admin menu editor, custom css / code, disable gutenb...
Create custom "Shortcodes" easily for HTML, JavaScript, CSS code snippets and use the shortcodes wit...
Add PHP code to your pages and posts easily using shortcodes.
An easy, clean, and simple way to enhance your site with code snippets.