Title: ElasticPress Debugging Add-On
Author: 10up
Published: <strong>2016 年 1 月 20 日</strong>
Last modified: 2026 年 5 月 5 日

---

搜索插件

![](https://ps.w.org/debug-bar-elasticpress/assets/icon-256x256.jpg?rev=2517849)

# ElasticPress Debugging Add-On

 作者：[10up](https://profiles.wordpress.org/10up/)

[下载](https://downloads.wordpress.org/plugin/debug-bar-elasticpress.4.0.0.zip)

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

 [支持](https://wordpress.org/support/plugin/debug-bar-elasticpress/)

## 描述

Allows you to examine every ElasticPress query running on any given request by adding
an [ElasticPress](https://wordpress.org/plugins/elasticpress) panel to [Debug Bar](https://wordpress.org/plugins/debug-bar/)
and/or [Query Monitor](https://wordpress.org/plugins/query-monitor/) plugins.

Alternatively, go to ElasticPress > Query Log and set it to record ElasticPress 
queries.

#### Requirements:

 * [ElasticPress 4.4.0+](https://wordpress.org/plugins/elasticpress)
 * PHP 7.4+
 * Additional functionalities with [Debug Bar 1.0+](https://wordpress.org/plugins/debug-bar/)
   or [Query Monitor](https://wordpress.org/plugins/query-monitor/)

## 安装

 1. Install [ElasticPress](https://wordpress.org/plugins/elasticpress).
 2. Optionally install [Debug Bar](https://wordpress.org/plugins/debug-bar/) or [Query Monitor](https://wordpress.org/plugins/query-monitor/).
 3. Install the plugin in WordPress.

## 常见问题

### Where do I report security bugs found in this plugin?

Please report security bugs found in the source code of the ElasticPress Debugging
Add-On plugin through the [Patchstack Vulnerability Disclosure  Program](https://patchstack.com/database/vdp/cc7374da-57fd-4963-905b-92ba5d12a628).
The Patchstack team will assist you with verification, CVE assignment, and notify
the developers of this plugin.

## 评价

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

### 󠀁[It Does What It Says](https://wordpress.org/support/topic/it-does-what-it-says-61/)󠁿

 [Daniel Hendricks](https://profiles.wordpress.org/hendridm/) 2019 年 2 月 27 日

This plugin works perfectly and is very useful for debugging ElasticPress queries.

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

### 󠀁[Indispensable if you're working on a site with ElasticPress integration](https://wordpress.org/support/topic/indispensable-if-youre-working-on-a-site-with-elasticpress-integration/)󠁿

 [J B](https://profiles.wordpress.org/johnpbloch/) 2016 年 9 月 3 日

The title says it all.

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

## 贡献者及开发者

「ElasticPress Debugging Add-On」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ 10up ](https://profiles.wordpress.org/10up/)
 *   [ Taylor Lovett ](https://profiles.wordpress.org/tlovett1/)

「ElasticPress Debugging Add-On」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/debug-bar-elasticpress/contributors)
为本插件所做的贡献。

[帮助将「ElasticPress Debugging Add-On」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/debug-bar-elasticpress)

### 对开发感兴趣吗?

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

## 更新日志

#### 4.0.0 – 2026-05-05

This version bumps the minimum PHP version to 7.4+.

**Added:**

 * Compatibility with Query Monitor 4 (including styles when Query Monitor loads
   the frontend in the Shadow DOM). Props [@burhandodhy](https://github.com/burhandodhy).
 * FAQ on reporting security bugs through the Patchstack Vulnerability Disclosure
   Program. Props [@jeffpaul](https://github.com/jeffpaul).

**Changed:**

 * Bump `Requires PHP` to 7.4. Props [@burhandodhy](https://github.com/burhandodhy)
   and [@felipeelia](https://github.com/felipeelia).
 * Remove the `Requires Plugins` plugin header so the plugin can be activated when
   ElasticPress is installed as an mu-plugin. Props [@barryceelen](https://github.com/barryceelen).
 * Updated npm dependencies. Props [@felipeelia](https://github.com/felipeelia).

**Fixed:**

 * Icon styling on the Query Log admin page. Props [@burhandodhy](https://github.com/burhandodhy).
 * Query Log “Keep Enabled” setting not working. Props [@burhandodhy](https://github.com/burhandodhy).
 * Extra backslashes in copied cURL commands. Props [@burhandodhy](https://github.com/burhandodhy).
 * Styling issues with Query Monitor Dark Mode. Props [@burhandodhy](https://github.com/burhandodhy)
   and [@felipeelia](https://github.com/felipeelia).

**Security:**

 * Bumped `tar-fs` from 2.1.1 to 3.1.0. Props [@dependabot](https://github.com/dependabot).
 * Bumped `http-proxy-middleware` from 2.0.7 to 2.0.9. Props [@dependabot](https://github.com/dependabot).

#### 3.1.1 – 2024-12-11

**Added:**

 * Display the number of queries in Query Monitor’s tab title. Props [@felipeelia](https://github.com/felipeelia)
   and [@burhandodhy](https://github.com/burhandodhy).
 * ElasticPress as a plugin dependency. Props [@jeffpaul](https://github.com/jeffpaul).

**Changed:**

 * More modern versions of GitHub Actions, node, and node packages. Props [@felipeelia](https://github.com/felipeelia).

**Fixed:**

 * Notices related to i18n calls. Props [@felipeelia](https://github.com/felipeelia)
   and [@archon810](https://github.com/archon810).
 * Use new plugin name in the admin notice. Props [@burhandodhy](https://github.com/burhandodhy).

#### 3.1.0 – 2023-09-20

**Added:**

 * New button to explain ES queries. Props [@burhandodhy](https://github.com/burhandodhy),
   [@felipeelia](https://github.com/felipeelia), [@MARQAS](https://github.com/MARQAS),
   and [@brandwaffle](https://github.com/brandwaffle).
 * New button to Reload and retrieve raw ES document. Props [@burhandodhy](https://github.com/burhandodhy),
   [@felipeelia](https://github.com/felipeelia), and [@brandwaffle](https://github.com/brandwaffle).
 * Query types (and context when listing queries in the Query Log admin screen.)
   Props [@felipeelia](https://github.com/felipeelia) and [@burhandodhy](https://github.com/burhandodhy).
 * Log query by context, status, and fixed time. Props [@felipeelia](https://github.com/felipeelia).
 * Official support to Query Monitor. Props [@felipeelia](https://github.com/felipeelia).

**Security:**

 * Bumped `tough-cookie` from 4.1.2 to 4.1.3. Props [@dependabot](https://github.com/dependabot).
 * Bumped `word-wrap` from 1.2.3 to 1.2.4. Props [@dependabot](https://github.com/dependabot).

#### 3.0.0 – 2023-03-23

This release drops the support for older versions of ElasticPress and PHP.

**Added:**

 * Instructions with error code for failed queries. Props [@MARQAS](https://github.com/MARQAS)
   and [@felipeelia](https://github.com/felipeelia).
 * Buttons to copy or download all requests info. Props [@MARQAS](https://github.com/MARQAS),
   [@felipeelia](https://github.com/felipeelia), and [@burhandodhy](https://github.com/burhandodhy).
 * Compatibility with the WordPress localization system. Props [@burhandodhy](https://github.com/burhandodhy)
   and [@felipeelia](https://github.com/felipeelia).
 * SECURITY.md file. Props [@felipeelia](https://github.com/felipeelia).

**Changed:**

 * Set minimum requirement for PHP to 7.0 and ElasticPress to 4.4.0. Props [@burhandodhy](https://github.com/burhandodhy)
   and [@felipeelia](https://github.com/felipeelia).
 * CSS and JS code lint by 10up toolkit. Props [@burhandodhy](https://github.com/burhandodhy).

**Fixed:**

 * Unnecessary `stripslashes()` call when outputting JSON objects. Props [@felipeelia](https://github.com/felipeelia),
   [@goldenapples](https://github.com/goldenapples), and [@mattonomics](https://github.com/mattonomics).
 * JS error on copy action. Props [@burhandodhy](https://github.com/burhandodhy).

**Security:**

 * Bumped `minimatch` from 3.0.4 to 3.1.2. Props [@dependabot](https://github.com/dependabot).
 * Bumped `json5` from 2.2.0 to 2.2.3. Props [@dependabot](https://github.com/dependabot).
 * Bumped `webpack` from 5.75.0 to 5.76.2. Props [@dependabot](https://github.com/dependabot).

#### 2.1.1 – 2022-08-04

**Security:**

 * Fix XSS vulnerability. Props [@piotr-bajer](https://github.com/piotr-bajer) and
   [@felipeelia](https://github.com/felipeelia).
 * Bumped `path-parse` from 1.0.6 to 1.0.7. Props [@dependabot](https://github.com/dependabot).
 * Bumps `minimist` from 1.2.5 to 1.2.6. Props [@dependabot](https://github.com/dependabot).
 * Bumps `ansi-regex` from 5.0.0 to 5.0.1. Props [@dependabot](https://github.com/dependabot).

#### 2.1.0

**Added:**

 * ElasticPress and Elasticsearch versions. Props to [@oscarssanchez](https://github.com/oscarssanchez)
   and [@felipeelia](https://github.com/felipeelia).
 * Log of bulk_index requests. Props [@felipeelia](https://github.com/felipeelia).
 * Warning when ElasticPress is indexing. Props [@nathanielks](https://github.com/nathanielks)
   and [@felipeelia](https://github.com/felipeelia).

**Changed:**

 * Only load CSS and JS files for logged-in users. Props [@cbratschi](https://github.com/cbratschi)
   and [@felipeelia](https://github.com/felipeelia).

#### 2.0.0

This release drops the support for older versions of WordPress Core, ElasticPress
and Debug Bar.

 * Code refactoring. Props [@felipeelia](https://github.com/felipeelia)
 * Fixed Query Logs in EP Dashboard [@felipeelia](https://github.com/felipeelia)
 * Fixed typo from “clsas” to “class” in the query output. Props [@Rahmon](https://github.com/Rahmon)

#### 1.4

 * Support ElasticPress 3.0+

#### 1.3

 * Add query log

#### 1.2

 * Show query errors (i.e. cURL timeout)
 * Add ?explain to query if GET param is set

#### 1.1.1

 * Only show query body if it exits

#### 1.1

 * Improve formatting
 * Show original query args (EP 2.1+)

#### 1.0

 * Initial release

## 额外信息

 *  版本 **4.0.0**
 *  最后更新：**1 月前**
 *  活跃安装数量 **900+**
 *  WordPress 版本 ** 5.6 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/debug-bar-elasticpress/) 和 [Polish](https://pl.wordpress.org/plugins/debug-bar-elasticpress/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/debug-bar-elasticpress)
 * 标签
 * [debug](https://cn.wordpress.org/plugins/tags/debug/)[debug bar](https://cn.wordpress.org/plugins/tags/debug-bar/)
   [elasticpress](https://cn.wordpress.org/plugins/tags/elasticpress/)[elasticsearch](https://cn.wordpress.org/plugins/tags/elasticsearch/)
 *  [高级视图](https://cn.wordpress.org/plugins/debug-bar-elasticpress/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ 10up ](https://profiles.wordpress.org/10up/)
 *   [ Taylor Lovett ](https://profiles.wordpress.org/tlovett1/)

## 支持

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

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