
內容簡介
如果日誌很長,最新的行總是顯示在頂部,以避免滾動。為了參考,行號會被顯示。
超過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 );
}
外掛標籤
開發者團隊
原文外掛簡介
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 );
}
