Title: Debug Bar Plugin Activation
Author: Juliette Reinders Folmer
Published: <strong>1 Tháng 7, 2016</strong>
Last modified: 2 Tháng 7, 2016

---

Tìm kiếm plugin

![](https://ps.w.org/debug-bar-plugin-activation/assets/banner-772x250.png?rev=1447557)

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

![](https://ps.w.org/debug-bar-plugin-activation/assets/icon-256x256.png?rev=1447557)

# Debug Bar Plugin Activation

 Bởi [Juliette Reinders Folmer](https://profiles.wordpress.org/jrf/)

[Tải về](https://downloads.wordpress.org/plugin/debug-bar-plugin-activation.1.0.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/debug-bar-plugin-activation/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/debug-bar-plugin-activation/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/debug-bar-plugin-activation/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/debug-bar-plugin-activation/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/debug-bar-plugin-activation/)

## Mô tả

Ever been “greeted” when you activated a plugin with the dreaded:

> This plugin generated # characters of **unexpected output** during activation….

And wondered what the unexpected output was ?

Or wondered whether a _de-activation_ or _uninstall_ routine was free of typical
PHP errors ?

Well, no need to wonder anymore, as you can now see the output within your favorite
debugging tool – the [Debug Bar](https://wordpress.org/plugins/debug-bar/).

Debug Bar Plugin Activation adds a new panel to the Debug Bar which displays the
output generated during plugin activation, deactivation and uninstall.

Once you’ve fixed the issues, you can remove the logged output straight from the
Debug Bar panel.
 And when you uninstall a plugin, the associated logged activation
and deactivation output entries will be removed automatically.

> This plugin was inspired by a conversation with [Mika Epstein](https://profiles.wordpress.org/ipstenu)
> during the [contributors day at WordCamp Europe 2016](https://2016.europe.wordcamp.org/introducing-the-wceu-2016-contributor-day-and-workshops/).

#### Important

This plugin requires the [Debug Bar](https://wordpress.org/plugins/debug-bar/) plugin
to be installed and activated.

Also note that this plugin should be used solely for debugging and/or in a development
environment and is not intended for use on a production site.

If you like this plugin, please [rate and/or review](https://wordpress.org/support/view/plugin-reviews/debug-bar-plugin-activation)
it. If you have ideas on how to make the plugin even better or if you have found
any bugs, please report these in the [Support Forum](https://wordpress.org/support/plugin/debug-bar-plugin-activation)
or in the [GitHub repository](https://github.com/jrfnl/debug-bar-plugin-activation/issues).

## Ảnh màn hình

[⌊Debug Bar Plugin Activation displaying error notices.⌉⌊Debug Bar Plugin Activation
displaying error notices.⌉[

Debug Bar Plugin Activation displaying error notices.

## Cài đặt

 1. Install Debug Bar if not already installed (https://wordpress.org/plugins/debug-
    bar/).
 2. Extract the .zip file for this plugin and upload its contents to the `/wp-content/
    plugins/` directory. Alternatively, you can install directly from the Plugin directory
    within your WordPress Install.
 3. Activate the plugin through the “Plugins” menu in WordPress.

Don’t use this plugin on a live site. This plugin is **only** intended to be used
for development purposes.

## Hỏi đáp

  Can it be used on live site ?

This plugin is only meant to be used for development purposes, but shouldn’t cause
any issues if run on a production site.

  What is plugin (de-)activation ?

> Activation and deactivation hooks provide ways to perform actions when plugins
> are activated or deactivated.
> Plugins can run an installation routine when they are activated in order to add
> rewrite rules, add custom database tables, or set default option values. … The
> deactivation hook is best used to clear temporary data such as caches and temp
> directories.

Ref: [Plugin Handbook](https://developer.wordpress.org/plugins/the-basics/activation-deactivation-hooks/)

  What about uninstalling ?

> Your plugin may need to do some clean-up when it is uninstalled from a site. A
> plugin is considered uninstalled if a user has deactivated the plugin, and then
> clicks the delete link.
> When your plugin is uninstalled, you’ll want to clear out any rewrite rules added
> by the plugin, options and/or settings specific to to the plugin, or other database
> values that need to be removed.

Ref: [Plugin Handbook](https://developer.wordpress.org/plugins/the-basics/uninstall-methods/)

  How do I add activation, deactivation and uninstall routines to my plugin ?

All the information you need is in the [Plugin Handbook on Plugin Basics](https://developer.wordpress.org/plugins/the-basics/).

  Why won’t the plugin activate ?

Have you read what it says in the beautifully red bar at the top of your plugins
page ? As it says there, the Debug Bar plugin needs to be active for this plugin
to work. If the Debug Bar plugin is not active, this plugin will automatically de-
activate itself.

## Đánh giá

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

### 󠀁[Still Working](https://wordpress.org/support/topic/still-working-124/)󠁿

 [Amy](https://profiles.wordpress.org/germanpearls/) 25 Tháng 1, 2023

Just a note of thank you to the developer. And, a note to potential users, this 
still worked on my localhost dev site in helping me debug the activation error ‘
headers already sent’. The plugin allowed me to read the additional output to see
where the error was coming from and resolve it. Thanks!

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

### 󠀁[Excellent tool for plugin developers](https://wordpress.org/support/topic/excellent-tool-for-plugin-developers/)󠁿

 [Chad Butler](https://profiles.wordpress.org/cbutlerjr/) 20 Tháng 7, 2020

I know this plugin currently doesn’t show any updates for several versions of WordPress.
However, it continues to work just fine. I find it a necessary tool for plugin development.
It adds to the debug bar, and if there are any errors that occur during plugin activation,
you can get them in the debug bar – an essential message if you’re trying to develop
a plugin and need to debug the activation process. The plugin is an add-on to the
Debug Bar plugin, so if you don’t have that installed, it won’t work.

 [ Đọc tất cả 2 đánh giá ](https://wordpress.org/support/plugin/debug-bar-plugin-activation/reviews/)

## Người đóng góp & Lập trình viên

“Debug Bar Plugin Activation” là mã nguồn mở. Những người sau đã đóng góp vào plugin
này.

Những người đóng góp

 *   [ Juliette Reinders Folmer ](https://profiles.wordpress.org/jrf/)

“Debug Bar Plugin Activation” đã được dịch qua 3 ngôn ngữ. Cảm ơn [những người tham gia dịch](https://translate.wordpress.org/projects/wp-plugins/debug-bar-plugin-activation/contributors)
vì đóng góp của họ.

[Dịch “Debug Bar Plugin Activation” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/debug-bar-plugin-activation)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/debug-bar-plugin-activation/),
check out [SVN repository](https://plugins.svn.wordpress.org/debug-bar-plugin-activation/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/debug-bar-plugin-activation/)
qua [RSS](https://plugins.trac.wordpress.org/log/debug-bar-plugin-activation/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.0 (2016-07-02)

 * Initial release.

## Meta

 *  Phiên bản **1.0**
 *  Cập nhật lần cuối **10 năm trước**
 *  Số lượt cài đặt **10+**
 *  Phiên bản WordPress ** 3.8 hoặc cao hơn **
 *  Đã kiểm tra lên đến **4.5.33**
 *  Ngôn ngữ
 * [English (Canada)](https://en-ca.wordpress.org/plugins/debug-bar-plugin-activation/),
   [English (US)](https://wordpress.org/plugins/debug-bar-plugin-activation/), [Portuguese (Portugal)](https://pt.wordpress.org/plugins/debug-bar-plugin-activation/),
   và [Swedish](https://sv.wordpress.org/plugins/debug-bar-plugin-activation/).
 *  [Dịch sang ngôn ngữ của bạn](https://translate.wordpress.org/projects/wp-plugins/debug-bar-plugin-activation)
 * Thẻ
 * [debug bar](https://vi.wordpress.org/plugins/tags/debug-bar/)[debugbar](https://vi.wordpress.org/plugins/tags/debugbar/)
   [plugin activation](https://vi.wordpress.org/plugins/tags/plugin-activation/)
   [plugin deactivation](https://vi.wordpress.org/plugins/tags/plugin-deactivation/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/debug-bar-plugin-activation/advanced/)

## Đánh giá

 5 trên 5 sao.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/debug-bar-plugin-activation/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/debug-bar-plugin-activation/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/debug-bar-plugin-activation/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/debug-bar-plugin-activation/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/debug-bar-plugin-activation/reviews/?filter=1)

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

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/debug-bar-plugin-activation/reviews/)

## Những người đóng góp

 *   [ Juliette Reinders Folmer ](https://profiles.wordpress.org/jrf/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/debug-bar-plugin-activation/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=995SSNDTCVBJG)