Linux 软件免费装

Debug Toggle

开发者 yourwordpressorgusername
更新时间 2025年12月2日 04:53
PHP版本: 5.6 及以上
WordPress版本: 6.6
版权: GPLv2 or later
版权网址: 版权信息

标签

debug development troubleshooting wp-config.php

下载

1.7.8

详情介绍:

Debug Toggle is a WordPress plugin that allows administrators to easily manage WordPress debug settings directly from the dashboard. It provides the ability to enable or disable individual debug constants, such as WP_DEBUG, WP_DEBUG_LOG, WP_DEBUG_DISPLAY, SCRIPT_DEBUG, and SAVEQUERIES. Features: Why Use Debug Toggle? Managing debug settings can be cumbersome, especially when you need to edit the wp-config.php file manually. Debug Toggle simplifies this process by providing an intuitive interface within the WordPress admin area, making it easier for developers and site administrators to control debugging options without directly editing core files.

安装:

  1. Upload the Plugin:
  2. Upload the debug_toggle folder to the /wp-content/plugins/ directory.
  3. Alternatively, install the plugin via the WordPress Plugins page by searching for "Debug Toggle."
  4. Activate the Plugin:
  5. Activate the plugin through the 'Plugins' menu in WordPress.
  6. Configure Settings:
  7. Navigate to Settings > Debug Toggle to configure the plugin according to your preferences.

屏幕截图:

  • **Admin Bar Menu:** Quickly toggle all debug modes directly from the admin bar.

升级注意事项:

1.7.7 This update adds the ability to remove debug constants from wp-config.php when uninstalling the plugin with the "Remove all plugin data" option enabled. It also ensures that duplicate debug constants are removed on activation, providing cleaner management of your configuration file.

常见问题:

Does this plugin edit my wp-config.php file?

Yes, the plugin modifies your wp-config.php file to update the debug constants based on your settings. It creates a backup of the original file named wp-config-backup.php in your WordPress root directory before making any changes.

Is it safe to use on a live site?

While the plugin is designed to be safe, it's recommended to use caution when modifying debug settings on a live site. Enabling certain debug modes can expose sensitive information to visitors. The plugin provides options to prevent unintended changes and to disable debug modes entirely.

Can I remove all plugin data upon uninstall?

Yes, there is an option in the settings to remove all plugin data upon uninstall. If enabled, all plugin settings will be deleted when you uninstall the plugin, and any debug constants added by the plugin to wp-config.php will also be removed.

What happens if I manually change the debug settings in wp-config.php?

If the "Debug Monitoring" feature is enabled, the plugin will periodically reset the debug settings to your configured values, overriding any manual changes. If monitoring is disabled, manual changes will persist until you update the settings via the plugin.

更新日志:

= 1.7.8 Fixed links 1.7.7 1.7.6 1.7.5 1.7.4 1.7.3 1.7.2 1.7.1