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

WP Marvelous Debug

外掛說明

This plugin allows viewing the log file (debug.log) on the Dashboard and editing the debugging constants from wp-config.php. It also provides other debugging oriented features.

The log file is loaded on the Dashboard (Tools > Log File) using the /SplFileObject class, optimized for memory usage, and it will use a pagination in order to load only some lines from it.

The plugin will try to enable WP_DEBUG and WP_DEBUG_LOG to true and disable WP_DEBUG_DISPLAY on its first run and will try to do the opposite when it’s deactivated.
You can change this behaviour if you want in the settings.

WP Config Constants

The wp-config.php is being edited using wp-cli/wp-config-transformer library, and these are the edited constants:

  • WP_DEBUG
  • WP_DEBUG_LOG
  • WP_DEBUG_DISPLAY
  • SCRIPT_DEBUG
  • SAVEQUERIES

Generate a reduced log file

It’s possible to generate a reduced duplicate log file (debug-reduced.log) from the original one loading only the last lines from it (something like the tail command from Linux).

螢幕擷圖

安裝方式

  1. Upload the entire ‘wp-marvelous-debug’ folder to the ‘/wp-content/plugins/’ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Start by visiting plugin settings at Settings > Debugging.

使用者評論

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

參與者及開發者

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

參與者

將〈WP Marvelous Debug〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.0 – 27/03/2020

  • Add Try catch on WPConfigTransformer class
  • Add Log Styling options
  • Replace WP Config path by file

1.0.2 – 19/03/2020

  • Add ‘Erase Log Content’ button

1.0.1 – 18/03/2020

  • Improve readme
  • Add banner and screenshots

1.0.0 – 16/03/2020

  • Initial Release.