Linux 软件免费装
Banner图

调试日志

开发者 andrewklimek
更新时间 2016年5月3日 02:51
捐献地址: 去捐款
PHP版本: 2.6.0 及以上
WordPress版本: 4.5
版权: GPLv2 or later
版权网址: 版权信息

标签

debug error log

下载

0.1 0.2 0.3

详情介绍:

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 ); }

安装:

  1. Install as you would any plugin.

屏幕截图:

  • Basic Screenshot
  • Warning before loading big files.

常见问题:

How do I change the number lines in Latest Errors?

add_filter( 'debug_log_latest_count', function(){ return 20; } );

How do I turn Latest Errors off?

Same as above but use 0... or be fancy: add_filter( 'debug_log_latest_count', '__return_false' );

How do I change or turn off the file size check?

Same deal. The number here is megabytes. add_filter( 'debug_log_too_big', function(){ return 2; } ); add_filter( 'debug_log_too_big', '__return_false' );

更新日志:

0.3 0.2 0.1