Title: WP Marvelous Debug
Author: Pablo Pacheco
Published: <strong>2020 年 3 月 19 日</strong>
Last modified: 2020 年 3 月 28 日

---

搜索插件

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

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

![](https://ps.w.org/wp-marvelous-debug/assets/icon-256x256.png?rev=2263579)

# WP Marvelous Debug

 作者：[Pablo Pacheco](https://profiles.wordpress.org/karzin/)

[下载](https://downloads.wordpress.org/plugin/wp-marvelous-debug.1.1.0.zip)

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

 [支持](https://wordpress.org/support/plugin/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](https://www.php.net/manual/pt_BR/class.splfileobject.php)
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](https://github.com/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」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Pablo Pacheco ](https://profiles.wordpress.org/karzin/)

[帮助将「WP Marvelous Debug」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-marvelous-debug)

### 对开发感兴趣吗?

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

## 更新日志

#### 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.

## 额外信息

 *  版本 **1.1.0**
 *  最后更新：**6 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 4.4 或更高版本 **
 *  已测试的最高版本为 **5.3.21**
 *  PHP 版本 ** 7.0.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-marvelous-debug/)
 * 标签
 * [debug](https://cn.wordpress.org/plugins/tags/debug/)[debugging](https://cn.wordpress.org/plugins/tags/debugging/)
   [log](https://cn.wordpress.org/plugins/tags/log/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-marvelous-debug/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ Pablo Pacheco ](https://profiles.wordpress.org/karzin/)

## 支持

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

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