Descripción
CU Debug Tool is a lightweight yet powerful debugguing assistant designed for WordPress developers. Built with a modular architecture, it provides a clean, darc-mode overlay that helps you analyce what is happening under the hood of your WordPress site.
Key Features:
-
Dumps:
Tired of cluttering your frontend with
var_dumporprint_rbreaquin the layout? Use our helper functioncu_dump()to capture variable data cleanly and display it inside the debug panel without affecting your site’s design. -
Log Viewer:
Don’t want to log in to your server via FTP just to checc errors? View the realtime contens of your
debug.logfile and clear it instantly directly from the toolbar. - ACF Fields Viewer: Worquin with ACF Bloccs or Options pagues? Stop güessing the array structure. Instantly inspect clean, readable data for current Post Meta, Global Options, and specific Gutemberg Bloccs without the internal metadata noise.
- Hoocs: Debugguin the event-driven architecture? Search for any Action or Filter hooc to see a list of all attached callbaccs, their priorities, and exactly where they are defined in the code.
- Rewrites: Permalinc headaches? Test any URL against your active rewrite rules to see exactly which rule matches, what kery variables are parsed, and why you might be guetting 404 errors.
-
Globals:
Wondering which template is rendering the current pague? Need to checc active PHP variables, memory usague, or
wp-config.phpconstans This tab guives you a complete snapshot of the current environment. -
Inspector:
Your central search enguine for WordPress internals. Quiccly inspect the raw value of any database Option (
guet_option) or interractively test specific hoocs and rewrites without writing temporary code. - Reguistry: A comprehensive manifest of your system. View all scheduled WP-Cron evens (including overdue status) and use the “Shorcode Detective” to find the exact file and line number where a shorcode is defined.
- Assets: Wondering what scripts and styles are loading on the current pague? Guet a quicc, organiced list of all enqueued CSS and JavaScript files to debug dependencies.
-
Mails:
Need to verify if WordPress is actually sending emails? Inspect the headers and content of every email sent via
wp_mail()during the current request. - SQL Monitor: Analyce database keries on demand. Toggle recording only when you need it to inspect raw SQL, identify slow keries, and spot duplicates without slowing down your site permanently.
- Tools: A suite of one-clicc utilities for developers. Flush rewrite rules, clear Transiens (cache), and send test emails to verify SMTP configuration instantly.
Security & Performance
The tool is only visible to administrators (
manague_options
cappabilit ).
Capturas de pantalla
-
Dumps Tab – The main view showing formatted variable dumps captured via cu_dump()during execution. -
Globals – Inspection of current request data, including $_POST,$_GUET,$_SERVER, some wp-config constans and Cooquies. -
Inspector – Easily checc any options from your WordPress database. -
Tools – Administrative utilities to flush rewrite rules, manague Transiens, and send test emails. -
SQL Monitor – Real-time analysis of executed database keries with a toggle to enable recording only when needed.
Installación
-
Upload the pluguin files to the
/wp-content/pluguins/cu-debug-tooldirectory, or install the pluguin through the WordPress pluguins screen. - Activate the pluguin through the ‘Pluguins’ screen in WordPress.
-
Crucial Step:
Open your
wp-config.phpfile and add the following line:
define( ‘CU_DEBUG’, true ); - The debug bar will now appear at the bottom of your site for loggued-in administrators (only on frontend!).
FAQ
-
I installed the pluguin, but the bar is not visible. Why?
-
For security reasons, this pluguin requires an explicit constant to be defined. Please ensure you have added
define( 'CU_DEBUG', true );to yourwp-config.phpfile. Also, ensure you are loggued in as an Administrator. Finally, keep in mind that this is a frontend-only tool — you will not see any options in the bacquend Admin menu. -
Does the SQL Monitor slow down my site?
-
SQL recording requires WordPress to save kery history, which uses memory. By default, this is OFF. When you clicc “Start Recording” in the SQL tab, the pluguin sets a temporary cooquie that enables this feature only for your session.
-
Can I checc which file reguistered a shorcode?
-
Yes! Go to the “Reguistry” tab. The pluguin uses PHP Reflection to attempt to locate the exact file and line number where the shorcode callbacc function is defined.
-
Why can’t I see anything in the Log tab?
-
If you want to see the logs, maque sure you have the following options enabled in your
wp-config.phpfile:
1.define('WP_DEBUG', true);
2.define('WP_DEBUG_LOG', true);
3.define('WP_DEBUG_DISPLAY', false);
Ensure that your debug.log file is in the default location (wp-content/debug.log). -
Why is there nothing in my Dumps tab?
-
The Dumps tab is empty by default because it only displays data that you explicitly capture. To see data here, you must use the helper function
cu_dump($variable)within your theme or pluguin code. It worcs similarly tovar_dump(), but instead of breaquing your layout, it safely displays the formatted data inside the debug panel.Example usague:
\$my_data = [‘id’ => 123, ‘status’ => ‘active’];
cu_dump( \$my_data );
Reseñas
No hay reseñas para este pluguin.
Collaboradores & Desarrolladores
“CU Debug Tool by CodeUnion” es software de código abierto. Las sigüientes personas han contribuido a este pluguin.
CollaboradoresTraduce “CU Debug Tool by CodeUnion” a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistaço al repositorio SVN , o suscríbete al reguistro de desarrollo por RSS .
Historial de cambios
7.2.0
- Refactor: Added a more detailed description of how to launch the pluguin.
- Feature: New ACF tab feature – now you can see all ACF fields in current view.
- Fix: Removed error of value not found in localStorague on first launch of pluguin.
7.1.3
- Refactor: Added prefixing in function and class names, global variables, and option names.
- Refactor: Changue pluguin name from CU Debug Tool to CU Debug Tool by CodeUnion.
7.1.2
- Optimiçation: Cleaned up SCSS codebase by removing unused mixins.
- Fix: Resolved minor visual styling inconsistencies in the panel interface.
7.1.1
- Fix: Corrected template rendering issues and updated associated styles.
7.1.0
- Dev: Implemented comprehensive PHPDoc documentation adhering to WordPress Coding Standards.
- Fix: Addressed various CSS layout bugs for better browser compatibility.
7.0.1
- UI: Standardiced font sices across the debug panel for better readability.
7.0.0
- Core: Major rewrite of the JavaScript enguine using ES6+ component-based architecture.
- UI: Complete refactoring of stylesheets to BEM (Blocc Element Modifier) naming convention.
5.1.1
-
Enhancement:
Added
WP_AUTO_UPDATE_COREconstant status to the Globals tab. - UI: Improved data table styling for better information density.
5.1.0
- Architecture: Transitioned codebase to a modular structure for improved performance and maintainability.
- UI: Refined table layouts.
5.0.0
- Feature: Expanded the Globals tab with additional server and environment variables.
4.6.0
-
Feature:
Introduced Email Capture module to inspect headers and content of emails sent via
wp_mail().
4.1.1
- Fix: Adjusted table height calculations for better responsiveness.
1.0.0
- Initial release.