Title: 调试日志
Author: Andrew Klimek
Published: <strong>2016 年 4 月 5 日</strong>
Last modified: 2016 年 5 月 2 日

---

搜索插件

![](https://ps.w.org/debug-log/assets/banner-772x250.png?rev=1387778)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/debug-log_c8c4c2.svg)

# 调试日志

 作者：[Andrew Klimek](https://profiles.wordpress.org/andrewklimek/)

[下载](https://downloads.wordpress.org/plugin/debug-log.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/debug-log/#description)
 * [评价](https://cn.wordpress.org/plugins/debug-log/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/debug-log/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/debug-log/#developers)

 [支持](https://wordpress.org/support/plugin/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 );
    }
    ```

## 屏幕截图

[⌊Basic Screenshot⌉⌊Basic Screenshot⌉[

Basic Screenshot

[⌊Warning before loading big files.⌉⌊Warning before loading big files.⌉[

Warning before loading big files.

## 安装

 1. Install as you would any plugin.

## 常见问题

  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' );
    ```

## 评价

![](https://secure.gravatar.com/avatar/7d99e648badcfa8017956b40f01bd1457b2febd32d335dcd81952d94e8bfee73?
s=60&d=retro&r=g)

### 󠀁[Light and simple](https://wordpress.org/support/topic/light-and-simple-2/)󠁿

 [bjornwebdesign](https://profiles.wordpress.org/bjornwebdesign/) 2016 年 11 月 
27 日

View log and delete it.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/debug-log/reviews/)

## 贡献者及开发者

「调试日志」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Andrew Klimek ](https://profiles.wordpress.org/andrewklimek/)

[帮助将「调试日志」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/debug-log)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/debug-log/)，查看[SVN仓库](https://plugins.svn.wordpress.org/debug-log/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/debug-log/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/debug-log/)。

## 更新日志

#### 0.3

 * Float delete button for easier access

#### 0.2

 * Added “Recent Errors” functionality
 * Added snippet to paste in wp-config when debug is off

#### 0.1

 * Initial Release

## 额外信息

 *  版本 **0.3**
 *  最后更新：**10 年前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 2.6.0 或更高版本 **
 *  已测试的最高版本为 **4.5.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/debug-log/)
 * 标签
 * [debug](https://cn.wordpress.org/plugins/tags/debug/)[error](https://cn.wordpress.org/plugins/tags/error/)
   [log](https://cn.wordpress.org/plugins/tags/log/)
 *  [高级视图](https://cn.wordpress.org/plugins/debug-log/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/debug-log/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/debug-log/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/debug-log/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/debug-log/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/debug-log/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/debug-log/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/debug-log/reviews/)

## 贡献者

 *   [ Andrew Klimek ](https://profiles.wordpress.org/andrewklimek/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/debug-log/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://ambientsleepingpill.com/)