| 开发者 | hydr4x |
|---|---|
| 更新时间 | 2026年1月30日 00:54 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
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.debug.log file and clear it instantly directly from the toolbar.wp-config.php constants? This tab gives you a complete snapshot of the current environment.get_option) or interactively test specific hooks and rewrites without writing temporary code.wp_mail() during the current request.manage_options capability).
/wp-content/plugins/cu-debug-tool directory, or install the plugin through the WordPress plugins screen.wp-config.php file and add the following line:
define( 'CU_DEBUG', true );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.
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.
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.
If you want to see the logs, make sure you have the following options enabled in your wp-config.php file:
define('WP_DEBUG', true);define('WP_DEBUG_LOG', true);define('WP_DEBUG_DISPLAY', false);
Ensure that your debug.log file is in the default location (wp-content/debug.log).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 );
WP_AUTO_UPDATE_CORE constant status to the Globals tab.wp_mail().