Title: Debug Toggle
Author: webjive
Published: <strong>2025 年 12 月 1 日</strong>
Last modified: 2025 年 12 月 1 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/debug-toggle.svg)

# Debug Toggle

 由 [webjive](https://profiles.wordpress.org/webjive/) 開發

[下載](https://downloads.wordpress.org/plugin/debug-toggle.1.7.8.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/debug-toggle/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/debug-toggle/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/debug-toggle/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/debug-toggle/#developers)

 [技術支援](https://wordpress.org/support/plugin/debug-toggle/)

## 外掛說明

**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:**

 * **Toggle Debug Settings Individually:** Enable or disable each debug setting 
   according to your needs.
 * **Debug Monitoring:** Prevent other plugins or themes from changing your debug
   settings by periodically enforcing your configurations.
 * **Admin Bar Integration:** Quickly toggle all debug modes directly from the admin
   bar menu.
 * **Uninstall Options:** Choose to remove all plugin data upon uninstalling the
   plugin, including removing debug constants from `wp-config.php`.
 * **Automatic Cleanup on Reinstall:** Removes duplicate debug constants from `wp-
   config.php` on activation to ensure clean configuration.

**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.

### License

This plugin is licensed under the GPLv2 or later.

### Additional Info

For support and more information, please visit [https://www.web-jive.com](https://www.web-jive.com).

## 螢幕擷圖

[⌊Settings Page: Easily configure debug settings from the admin dashboard.⌉⌊Settings
Page: Easily configure debug settings from the admin dashboard.⌉[

**Settings Page:** Easily configure debug settings from the admin dashboard.

[⌊Admin Bar Menu: Quickly toggle all debug modes directly from the admin bar.⌉⌊Admin
Bar Menu: Quickly toggle all debug modes directly from the admin bar.⌉[

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

## 安裝方式

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

## 常見問題集

### 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.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Debug Toggle〉的開發相關工作。

參與者

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

[將〈Debug Toggle〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/debug-toggle)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/debug-toggle/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/debug-toggle/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/debug-toggle/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/debug-toggle/)。

## 變更記錄

#### 1.7.8 Fixed links

1.7.7 =
 * Added functionality to remove debug constants from `wp-config.php` when
the plugin is uninstalled and the option to remove all data is enabled. * On activation,
the plugin now removes any existing debug constants from `wp-config.php` to prevent
duplicates. * Ensured clean management of debug constants in `wp-config.php`.

#### 1.7.6

 * Fixed an issue where the plugin was inserting blank lines into `wp-config.php`.
 * Improved the `debug_toggle_update_wp_config()` function to prevent unnecessary
   whitespace.
 * Ensured that the plugin modifies `wp-config.php` cleanly without affecting its
   formatting.

#### 1.7.5

 * Rolled back changes from version 1.7.4 due to issues with the settings page becoming
   blank.
 * Restored the previous `debug_toggle_update_wp_config()` function.
 * The plugin no longer attempts to remove existing debug constant definitions from`
   wp-config.php`.

#### 1.7.4

 * [Withdrawn due to issues]

#### 1.7.3

 * Fixed missing translators comment in translation function.
 * Incremented version number for the update.

#### 1.7.2

 * Fixed issues reported by the WordPress repository.
 * Corrected translation function usage for dynamic strings.
 * Ensured the `/languages` directory exists to match the `Domain Path`.
 * Moved all form data processing inside nonce verification block.

#### 1.7.1

 * Fixed issues reported by the WordPress repository.
 * Added missing text domains to translation functions.
 * Escaped all output properly to enhance security.
 * Replaced discouraged filesystem functions with `WP_Filesystem` methods.
 * Improved input validation and sanitization.
 * Shortened the short description to comply with repository guidelines.

## 中繼資料

 *  版本 **1.7.8**
 *  最後更新 **8 個月前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.2 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.6.7**
 *  PHP 版本需求 ** 5.6 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/debug-toggle/)
 * 標籤:
 * [debug](https://tw.wordpress.org/plugins/tags/debug/)[development](https://tw.wordpress.org/plugins/tags/development/)
   [troubleshooting](https://tw.wordpress.org/plugins/tags/troubleshooting/)[wp-config.php](https://tw.wordpress.org/plugins/tags/wp-config-php/)
 *  [進階檢視](https://tw.wordpress.org/plugins/debug-toggle/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/debug-toggle/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/debug-toggle/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/debug-toggle/)