Title: Frontend Debugger
Author: Viktor Szépe
Published: <strong>2015 年 3 月 11 日</strong>
Last modified: 2015 年 8 月 29 日

---

搜索插件

![](https://ps.w.org/frontend-debugger/assets/banner-772x250.png?rev=1110542)

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

![](https://ps.w.org/frontend-debugger/assets/icon-256x256.png?rev=1110542)

# Frontend Debugger

 作者：[Viktor Szépe](https://profiles.wordpress.org/szepeviktor/)

[下载](https://downloads.wordpress.org/plugin/frontend-debugger.0.9.0.zip)

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

 [支持](https://wordpress.org/support/plugin/frontend-debugger/)

## 描述

#### Only for development!

Displays:

 * Header
 * Thumbnails
 * The Loop (content)
 * Footer
 * Included template parts
 * Highlight script, link and style elements

To remove **all** registered scripts and styles add `?remove-scripts` to the URL.
All these scripts and styles will be listed at the bottom of the footer as HTML 
comment. This way it is possible to detect non-WordPress script printing.

If you are not an administrators add `?view-source` to the URL to activate Frontend
Debugger.

Notice: This plugin uses regular expressions and `eval()` to get the current template
apart.

TODO: sidebar, search-form.

The mini control panel contains:

 * Header, Thumbnails, The Loop, Footer, Included files anchors
 * Toogle button for line numbers
 * Toggle button for line wrapping
 * Toggle button for showing line ends
 * Button for script and style highlighting

From the second click on the `Highlight` button loops through (scrolls to) all scripts
and styles.

The control panel’s state is kept in your browser’s [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage).

Development of this plugin goes on on [GitHub](https://github.com/szepeviktor/frontend-debugger).
Please contribute by sending PR-s implementing my TODO-s.

## 屏幕截图

[⌊The Loop.⌉⌊The Loop.⌉[

The Loop.

[⌊The Header.⌉⌊The Header.⌉[

The Header.

[⌊Included files.⌉⌊Included files.⌉[

Included files.

## 安装

This section describes how to install the plugin and get it working.

 1. Uppack the ZIP to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 评价

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

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-7350/)󠁿

 [Denis Stoyanov](https://profiles.wordpress.org/denisstoyanov/) 2016 年 9 月 3 
日

Saves a lot of time when wondering which template file is responsible for the view.
Especially when themes include their own files and override the default templates.

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

## 贡献者及开发者

「Frontend Debugger」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Viktor Szépe ](https://profiles.wordpress.org/szepeviktor/)

[帮助将「Frontend Debugger」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/frontend-debugger)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.9.0

 * Added `remove-scripts` GET parameter
 * Added `Highlight` button secondary function: loop through all scripts and styles

#### 0.8.0

 * Added template part detection from barrykooij’s What The File plugin.
 * Updated fail2ban trigger on direct access.
 * Added support for `get_template_part()` detection.
 * WordPress 4.3 compatibility.

#### 0.7.1

 * Fixed site_url() instead home_url().

#### 0.6

 * Highlight script, link and style elements.

#### 0.5

 * Prevent search engine indexing.

#### 0.4

 * Display page URL.
 * Some visual cosmetics.

#### 0.3

 * Include remote scripts and styles.

#### 0.2

 * Initial release.

## 额外信息

 *  版本 **0.9.0**
 *  最后更新：**11 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **4.3.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/frontend-debugger/)
 * 标签
 * [debug](https://cn.wordpress.org/plugins/tags/debug/)[debugging](https://cn.wordpress.org/plugins/tags/debugging/)
   [developer](https://cn.wordpress.org/plugins/tags/developer/)[development](https://cn.wordpress.org/plugins/tags/development/)
   [Frontend](https://cn.wordpress.org/plugins/tags/frontend/)[html](https://cn.wordpress.org/plugins/tags/html/)
   [source](https://cn.wordpress.org/plugins/tags/source/)
 *  [高级视图](https://cn.wordpress.org/plugins/frontend-debugger/advanced/)

## 评级

 5 星（最高 5 星）。

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

[您的评价](https://wordpress.org/support/plugin/frontend-debugger/reviews/#new-post)

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

## 贡献者

 *   [ Viktor Szépe ](https://profiles.wordpress.org/szepeviktor/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://szepe.net/wp-donate/)