[WordPress] 外掛分享: Debug Log

首頁外掛目錄 › Debug Log
WordPress 外掛 Debug Log 的封面圖片
100+
安裝啟用
★★★★★
5/5 分(1 則評價)
3608 天前
最後更新
問題解決
WordPress 2.6.0+ v0.3 上架:2016-04-04

內容簡介

如果日誌很長,最新的行總是顯示在頂部,以避免滾動。為了參考,行號會被顯示。

超過5MB的日誌只有在確認您確信後才會載入,或您可以選擇刪除日誌並重新開始。

只有管理員可以查看(或者您授予manage_options能力的任何人)。

Debug Log僅在wp-config.php中啟用時才可用。請參見https://codex.wordpress.org/Debugging_in_WordPress#WP_DEBUG_LOG的說明。

推薦配置:

define('WP_DEBUG',true);//只需切換此行以將其關閉
if (WP_DEBUG) {
define('WP_DEBUG_LOG',true);
define('WP_DEBUG_DISPLAY',false);
@ini_set( 'display_errors', 0 );
}

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.3) 或搜尋安裝

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

原文外掛簡介

If the log is long, the latest lines are show at the top to avoid scrolling. Line numbers are shown for reference.
Logs over 5MB do not load until you confirm you are sure, or you can opt to delete the log and start afresh.
Only admins can view (or anyone you give the capability “manage_options”).
Debug Log only works if it’s enabled in wp-config.php. See https://codex.wordpress.org/Debugging_in_WordPress#WP_DEBUG_LOG
Recommended configuration:
define( 'WP_DEBUG', true );// just toggle this line to false to turn off
if ( WP_DEBUG ) {
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
}

延伸相關外掛

文章
Filter
Mastodon