Title: CU Debug Tool by CodeUnion
Author: hydr4x
Published: <strong>16 de Xaneiro, 2026</strong>
Last modified: 29 de Xaneiro, 2026

---

Buscar plugins

![](https://ps.w.org/cu-debug-tool/assets/banner-772x250.png?rev=3441171)

![](https://ps.w.org/cu-debug-tool/assets/icon-256x256.png?rev=3441171)

# CU Debug Tool by CodeUnion

 Por [hydr4x](https://profiles.wordpress.org/hydr4x/)

[Descargar](https://downloads.wordpress.org/plugin/cu-debug-tool.7.2.1.zip)

 * [Detalles](https://gl.wordpress.org/plugins/cu-debug-tool/#description)
 * [Valoracións](https://gl.wordpress.org/plugins/cu-debug-tool/#reviews)
 *  [Instalación](https://gl.wordpress.org/plugins/cu-debug-tool/#installation)
 * [Desenvolvemento](https://gl.wordpress.org/plugins/cu-debug-tool/#developers)

 [Soporte](https://wordpress.org/support/plugin/cu-debug-tool/)

## Descrición

CU Debug Tool is a lightweight yet powerful debugging assistant designed for WordPress
developers. Built with a modular architecture, it provides a clean, dark-mode overlay
that helps you analyze what is happening under the hood of your WordPress site.

**Key Features:**

 * **Dumps:** Tired of cluttering your frontend with `var_dump` or `print_r` breaking
   the layout? Use our helper function `cu_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 check errors?
   View the realtime contents of your `debug.log` file and clear it instantly directly
   from the toolbar.
 * **ACF Fields Viewer:** Working with ACF Blocks or Options pages? Stop guessing
   the array structure. Instantly inspect clean, readable data for current Post 
   Meta, Global Options, and specific Gutenberg Blocks without the internal metadata
   noise.
 * **Hooks:** Debugging the event-driven architecture? Search for any Action or 
   Filter hook to see a list of all attached callbacks, their priorities, and exactly
   where they are defined in the code.
 * **Rewrites:** Permalink headaches? Test any URL against your active rewrite rules
   to see exactly which rule matches, what query variables are parsed, and why you
   might be getting 404 errors.
 * **Globals:** Wondering which template is rendering the current page? Need to 
   check active PHP variables, memory usage, or `wp-config.php` constants? This 
   tab gives you a complete snapshot of the current environment.
 * **Inspector:** Your central search engine for WordPress internals. Quickly inspect
   the raw value of any database Option (`get_option`) or interactively test specific
   hooks and rewrites without writing temporary code.
 * **Registry:** A comprehensive manifest of your system. View all scheduled WP-
   Cron events (including overdue status) and use the “Shortcode Detective” to find
   the exact file and line number where a shortcode is defined.
 * **Assets:** Wondering what scripts and styles are loading on the current page?
   Get a quick, organized 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:** Analyze database queries on demand. Toggle recording only when
   you need it to inspect raw SQL, identify slow queries, and spot duplicates without
   slowing down your site permanently.
 * **Tools:** A suite of one-click utilities for developers. Flush rewrite rules,
   clear Transients (cache), and send test emails to verify SMTP configuration instantly.

**Security & Performance**
 The tool is only visible to administrators (`manage_options`
capability).

## Capturas

 * [[
 * **Dumps Tab** – The main view showing formatted variable dumps captured via `
   cu_dump()` during execution.
 * [[
 * **Globals** – Inspection of current request data, including `$_POST`, `$_GET`,`
   $_SERVER`, some wp-config constants and Cookies.
 * [[
 * **Inspector** – Easily check any options from your WordPress database.
 * [[
 * **Tools** – Administrative utilities to flush rewrite rules, manage Transients,
   and send test emails.
 * [[
 * **SQL Monitor** – Real-time analysis of executed database queries with a toggle
   to enable recording only when needed.

## Instalación

 1. Upload the plugin files to the `/wp-content/plugins/cu-debug-tool` directory, or
    install the plugin through the WordPress plugins screen.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. **Crucial Step:** Open your `wp-config.php` file and add the following line:
     define(‘
    CU_DEBUG’, true );
 4. The debug bar will now appear at the bottom of your site for logged-in administrators(
    only on frontend!).

## Preguntas frecuentes

### I installed the plugin, but the bar is not visible. Why?

For security reasons, this plugin requires an explicit constant to be defined. Please
ensure you have added `define( 'CU_DEBUG', true );` to your `wp-config.php` file.
Also, ensure you are logged in as an Administrator. Finally, keep in mind that this
is a **frontend-only** tool — you will not see any options in the backend Admin 
menu.

### Does the SQL Monitor slow down my site?

SQL recording requires WordPress to save query history, which uses memory. By default,
this is OFF. When you click “Start Recording” in the SQL tab, the plugin sets a 
temporary cookie that enables this feature only for your session.

### Can I check which file registered a shortcode?

Yes! Go to the “Registry” tab. The plugin uses PHP Reflection to attempt to locate
the exact file and line number where the shortcode callback function is defined.

### Why can’t I see anything in the Log tab?

If you want to see the logs, make sure you have the following options enabled in
your `wp-config.php` file:
 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 plugin code. It works similarly to `var_dump()`, but instead
of breaking your layout, it safely displays the formatted data inside the debug 
panel.

Example usage:
 \$my_data = [‘id’ => 123, ‘status’ => ‘active’]; cu_dump( \$my_data);

## Comentarios

![](https://secure.gravatar.com/avatar/3abc75da355495b113aac6e884eea81244f1093af4c3994a95ea1d9af894e34a?
s=60&d=retro&r=g)

### 󠀁[Awesome!](https://wordpress.org/support/topic/awesome-10630/)󠁿

 [adam0x](https://profiles.wordpress.org/adam0x/) 3 de Febreiro, 2026

Wow, this plugin is awesome! The dump function, debug log preview, and preview of
the most important data without jumping to the WP panel can save a lot of time during
development. I recommend it!

 [ Ler todas as 0 opinións ](https://wordpress.org/support/plugin/cu-debug-tool/reviews/)

## Colaboradores e desenvolvedores

“CU Debug Tool by CodeUnion” é un software de código aberto. As seguintes persoas
colaboraron con este plugin.

Colaboradores

 *   [ hydr4x ](https://profiles.wordpress.org/hydr4x/)

[Traduce “CU Debug Tool by CodeUnion” ao teu idioma.](https://translate.wordpress.org/projects/wp-plugins/cu-debug-tool)

### Interesado no desenvolvemento?

[Revisa o código](https://plugins.trac.wordpress.org/browser/cu-debug-tool/), bota
unha ollada ao[repositorio SVN](https://plugins.svn.wordpress.org/cu-debug-tool/),
ou subscríbete ao [log de desenvolvemento](https://plugins.trac.wordpress.org/log/cu-debug-tool/)
por [RSS](https://plugins.trac.wordpress.org/log/cu-debug-tool/?limit=100&mode=stop_on_copy&format=rss).

## Rexistro de cambios

#### 7.2.1

 * **Fix:** Fixed an issue with the console closing on very low screens – added 
   max-height attribute.

#### 7.2.0

 * **Refactor:** Added a more detailed description of how to launch the plugin.
 * **Feature:** New ACF tab feature – now you can see all ACF fields in current 
   view.
 * **Fix:** Removed error of value not found in localStorage on first launch of 
   plugin.

#### 7.1.3

 * **Refactor:** Added prefixing in function and class names, global variables, 
   and option names.
 * **Refactor:** Changed plugin name from CU Debug Tool to CU Debug Tool by CodeUnion.

#### 7.1.2

 * **Optimization:** 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:** Standardized font sizes across the debug panel for better readability.

#### 7.0.0

 * **Core:** Major rewrite of the JavaScript engine using ES6+ component-based architecture.
 * **UI:** Complete refactoring of stylesheets to BEM (Block Element Modifier) naming
   convention.

#### 5.1.1

 * **Enhancement:** Added `WP_AUTO_UPDATE_CORE` constant 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.

## Meta

 *  Versión **7.2.1**
 *  Última actualización **Fai 2 meses**
 *  Instalacións activas **10+**
 *  Versión de WordPress ** 5.8 ou superior **
 *  Probado ata **6.9.4**
 *  Versión de PHP ** 7.4 ou superior **
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/cu-debug-tool/)
 * Etiquetas
 * [debug](https://gl.wordpress.org/plugins/tags/debug/)[debugger](https://gl.wordpress.org/plugins/tags/debugger/)
   [developer](https://gl.wordpress.org/plugins/tags/developer/)[hooks](https://gl.wordpress.org/plugins/tags/hooks/)
   [sql](https://gl.wordpress.org/plugins/tags/sql/)
 *  [Vista avanzada](https://gl.wordpress.org/plugins/cu-debug-tool/advanced/)

## Valoracións

 5 de 5 estrelas

 *  [  1 valoración de 5 estrelas     ](https://wordpress.org/support/plugin/cu-debug-tool/reviews/?filter=5)
 *  [  0 valoracións de 4 estrelas     ](https://wordpress.org/support/plugin/cu-debug-tool/reviews/?filter=4)
 *  [  0 valoracións de 3 estrelas     ](https://wordpress.org/support/plugin/cu-debug-tool/reviews/?filter=3)
 *  [  0 valoracións de 2 estrelas     ](https://wordpress.org/support/plugin/cu-debug-tool/reviews/?filter=2)
 *  [  0 valoracións de 1 estrelas     ](https://wordpress.org/support/plugin/cu-debug-tool/reviews/?filter=1)

[Engadir a miña recensión](https://wordpress.org/support/plugin/cu-debug-tool/reviews/#new-post)

[Ver todas as valoracións](https://wordpress.org/support/plugin/cu-debug-tool/reviews/)

## Colaboradores

 *   [ hydr4x ](https://profiles.wordpress.org/hydr4x/)

## Soporte

Tes algo que dicir? Necesitas axuda?

 [Ver o foro de soporte](https://wordpress.org/support/plugin/cu-debug-tool/)