[WordPress] 外掛分享: Debug

首頁外掛目錄 › Debug
WordPress 外掛 Debug 的封面圖片
2,000+
安裝啟用
★★★★
4.6/5 分(11 則評價)
4 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.14 上架:2017-04-20

內容簡介

Debug 是一款開發與生產工具,幫助您在 WordPress 網站(包括多站點)上尋找和修復錯誤。它提供乾淨的管理面板,讓您輕鬆切換內建的除錯常數、查看錯誤日誌,並在發生重要錯誤時即時接收電子郵件通知,無需手動編輯 wp-config.php。

【主要功能】
• 一鍵切換除錯標誌
• 錯誤日誌檢視器
• 即時電子郵件警報
• 安全的 wp-config 編輯
• 自動備份與一鍵還原

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.14) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Debug」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Debug is a development and production tool that helps you find and fix bugs on your WordPress site (including multisite). It gives you a clean admin panel to toggle WordPress’s built-in debug constants, read the error log, and receive instant email notifications when meaningful errors happen — all without editing wp-config.php by hand.
What it does for you

One-click debug flags — toggle WP_DEBUG, WP_DEBUG_LOG, WP_DEBUG_DISPLAY, SCRIPT_DEBUG and SAVEQUERIES directly from the settings page.
Error log viewer — view, clear and download the tail of your wp-content/debug.log (last 1 MB) right from the admin.
Real-time email alerts — get notified when errors and warnings occur, with a throttled, level-filtered handler that ignores deprecation notices and suppressed (@) code.
Safe wp-config editing — a timestamped backup is created automatically before every change, with one-click restore if you ever need to roll back.

Why you can trust it
The plugin never lets you download wp-config.php (a common credential leak in older debug plugins). All file access is strictly path-guarded, all admin actions are protected with nonces and capability checks, and backups let you revert any change instantly.
Frequently Asked Questions
Is my wp-config.php safe?
Yes. The plugin creates a timestamped backup of wp-config.php before every change, and the settings page lets you restore any backup with one click. wp-config.php is never downloadable from the browser.
Can I use this on a production site?
Yes — and that’s a core use case. Error notifications only fire for meaningful error levels (errors and warnings), never for deprecation notices. Emails are queued and throttled so a busy site won’t flood your inbox, and WP_DEBUG_DISPLAY is kept off by default so errors are not shown to visitors.
Why am I not getting email notifications?
Make sure Email Notification is enabled and a valid address is set, and that wp_mail() works on your host. Only errors and warnings trigger emails (notices and deprecations are filtered out).
The plugin says wp-config.php is not writable. What do I do?
Check your file permissions. Most hosts run with the web user owning wp-config.php (usually 0644). If the plugin still cannot write it, it shows you the exact code to paste into wp-config.php manually — so you’re never stuck.
What does “Error Log” show?
It shows the last 1 MB of wp-content/debug.log, so you can inspect recent errors without loading a huge file. You can clear the log or download it as a plain text file.
Does this work on multisite?
Yes. All settings are stored per-site and the wp-config.php edits apply globally, which is the expected behaviour for network-wide debug toggling.
Contacts
For support or the development team of the Debug plugin: https://soninow.com/contact

延伸相關外掛

文章
Filter
Mastodon