
內容簡介
總結:Admin Debug Tools 提供了在儀表板中直接管理網站日誌和調試設置的功能,無需編輯後端文件。
1. 什麼是 Debug Log 文件?
- Debug Log 文件是 WordPress 網站管理員和開發人員用來排除網站問題的強大工具之一。
- 但是,存取 Debug Log 文件可能變得很麻煩,需要編輯後端文件以及 SSH 或 FTP 存取。
2. Admin Debug Tools 如何簡化管理 Debug Log 的過程?
- 提供在 WP Admin 區域管理 Debug Log 的功能。
- 提供以下功能:
- 查看 Debug Log 文件的格式化版本;
- 監視最新日誌項目的幾乎實時功能(即將推出改進);
- 按類型篩選日誌項目(錯誤、警告、提示、廢棄物);
- 通過正則表達式運算符搜索日誌項目;
- 保存和/或清除您的 Debug Log 文件;
- 下載您的 Debug Log 文件;
- 一鍵切換調試模式開啟或關閉;
- 編輯 WP_DEBUG、WP_DEBUG_LOG 和其他調試相關常量。
3. 如何透過 Admin Debug Tools 進行 WP 調試?
- Admin Debug Tools 通過直接編輯 wp-config.php 文件來通過 WP_DEBUG 常量啟用和禁用調試模式。
- 您可以通過 Config 畫面完全控制 WP 調試常量。
- 啟用調試模式時,WordPress 將錯誤、提示和警告記錄到 Debug Log 文件中,這對排除網站問題很有幫助。
- 禁用調試模式時,WordPress 將停止將錯誤、提示和警告記錄到 Debug Log 文件中,這有助於減輕服務器負載和提高網站性能。
4. 未來版本 Admin Debug Tools 有哪些功能?
- Debug Log 文件輪轉;
- 忽略特定錯誤並減少日誌文件中的噪音的選項;
- 用於調試的自定義且有用的錯誤頁面;
- 用於調試數據庫查詢的畫面;
- 用於代碼中使用和將調試信息打印到日誌文件中的調試輔助功能;
- 用於停用插件和主題,將調試與主站分開的排查會話模式。
5. 開發方面有什麼資訊?
- Admin Debug Tools 是開源的,歡迎貢獻!
- 在 GitHub 存儲庫中可以找到源代碼和開發說明:
- https://github.com/tjdsneto/admin-debug-tools
- 如果您有興趣貢獻,請檢查存儲庫中的開發安裝說明、編碼標準和貢獻指南。
外掛標籤
開發者團隊
原文外掛簡介
Admin Debug Tools makes it easy to manage your site’s logs and debug settings directly from the dashboard, without needing to edit backend files.
Debug Log
The Debug Log file is one of the most powerful tools for WordPress site admins and developers to troubleshoot issues on their site. But, accessing the debug log file can be a hassle, requiring backend file edits and SSH or FTP access.
Admin Debug Tools simplifies the process by giving you the power to manage your debug log from the WP Admin area.
With Admin Debug Tools, you can:
View a formatted version of the debug log file;
Monitor the latest log entries in near real-time (improvements to come);
Filter log entries by type (Error, Warning, Notices, Deprecations);
Search log entries by keyword with regex operators;
Save and/or clear your debug log file;
Download your debug log file;
Toggle debug mode on and off with a single click;
Edit the WP_DEBUG, WP_DEBUG_LOG, and other debug related constants;
WP Debugging
Admin Debug Tools makes direct edits to your wp-config.php file to enable and disable debug mode through the WP_DEBUG constant.
You have full control over the WP debug constants through the Config screen.
When you enable debug mode, WordPress will log errors, notices, and warnings to the debug log file. This can be helpful for troubleshooting issues on your site.
When you disable debug mode, WordPress will stop logging errors, notices, and warnings to the debug log file. This can be helpful for reducing server load and improving site performance.
Future Features
Here are some of the features I have on my radar and plan to implement in future versions of Admin Debug Tools:
Debug log file rotation;
Option to ignore certain errors and reduce the noise in the log file;
Custom and usefull error pages for debugging;
Screen to debug database queries;
Debug helper functions to use in your code and print debug information to the log file;
Troubleshoot session mode to disable plugins and themes, and separate debugging from the main site;
Development
Admin Debug Tools is open source and we welcome contributions! You can find the source code and development instructions in our GitHub repository:
https://github.com/tjdsneto/admin-debug-tools
If you’re interested in contributing, please check the repository for development setup instructions, coding standards, and contribution guidelines.
