Title: BugFu Console Debugger
Author: Federico Andrioli
Published: <strong>2016 年 8 月 26 日</strong>
Last modified: 2023 年 1 月 17 日

---

搜尋外掛

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

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# BugFu Console Debugger

 由 [Federico Andrioli](https://profiles.wordpress.org/fedeandri/) 開發

[下載](https://downloads.wordpress.org/plugin/bugfu-console-debugger.1.3.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/bugfu-console-debugger/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/bugfu-console-debugger/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/bugfu-console-debugger/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/bugfu-console-debugger/#developers)

 [技術支援](https://wordpress.org/support/plugin/bugfu-console-debugger/)

## 外掛說明

Log/Debug the PHP code in your Theme/Plugin with your Browser Console (no extension
needed). Made for themes and plugins developers.

**HOW TO CHECK IF BUGFU IS WORKING**

Open your Browser Console, if you see this header, BugFu is working properly

    ```
    ################################
    #### BugFu Console Debugger ####
    ################################
    ```

**HOW TO OPEN YOUR BROWSER JAVASCRIPT CONSOLE**

If you’ve never used the Browser JavaScript Console before, here’s how you open 
it:

 * Chrome PC shift+ctrl+j – Chrome Mac alt+cmd+j
 * Firefox PC shift+ctrl+k – Firefox Mac alt+cmd+k
 * Safari PC shift+ctrl+c – Safari Mac alt+cmd+c

**HOW TO USE BUGFU WITH WORDPRESS**

Call the log static method from wherever you are within the WordPress PHP code

    ```
    <?php /* WORDPRESS CODE HERE */

    /* Call it with no arguments to only output some backtrace info */
    BugFu::log();

    /* Call it with a string argument to output that string content */
    BugFu::log($my_string_content);

    /* Call it with a non-string argument to output the structured
       representation of that argument - it uses var_export() */
    BugFu::log($my_object-array-variable);

    /* Call it with the second optional argument set to "false"
       to turn off the backtrace info (which is on by default) */
    BugFu::log($my_content, false);
    ```

**DEVELOPERS**

Official Github repository:
 https://github.com/fedeandri/bugfu-console-debugger

## 螢幕擷圖

 * [[
 * The admin page when BugFu is ON
 * [[
 * The Browser JavaScript Console when BugFu is ON
 * [[
 * The admin page when BugFu is OFF

## 安裝方式

 1. Unzip the plugin file bugfu-console-debugger.zip
 2. Upload the unzipped folder “bugfu-console-debugger” to the `/wp-content/plugins/`
    directory of your WordPress blog/website
 3. Activate the plugin through the ‘Plugins’ menu in WordPress

## 使用者評論

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

### 󠀁[Nice when it works, often doesn’t](https://wordpress.org/support/topic/nice-when-it-works-often-doesnt/)󠁿

 [synthezoid](https://profiles.wordpress.org/synthezoid/) 2024 年 2 月 13 日 1 則
留言

Totally broken with Litespeed cache, instantly causes out-of-memory errors and other
seriously unreliable operation including failure of pages to load with “there has
been a critical error on this website”. Abandoned many years ago, developer hasn’t
responded in support forum in 6 years and github repo not updated in 3 years. Too
bad, it was an extremely useful plugin when it worked.

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

### 󠀁[Easy to use & very helpful](https://wordpress.org/support/topic/easy-to-use-very-helpful-7/)󠁿

 [Martin Sauter](https://profiles.wordpress.org/martinsauter/) 2022 年 11 月 29 
日

Nothing else to add.

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

### 󠀁[Exactly what I need](https://wordpress.org/support/topic/exactly-what-i-need-160/)󠁿

 [alexd3d](https://profiles.wordpress.org/alexd3d/) 2022 年 10 月 8 日

Exactly what I need – simple and genious! Thanks!

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

### 󠀁[Great for quick debugging](https://wordpress.org/support/topic/great-for-quick-debugging/)󠁿

 [hazardawareness](https://profiles.wordpress.org/hazardawareness/) 2021 年 6 月
9 日

When you can’t be bothered to setup xdebug or if you’re trying to debug on a server
you don’t have access to – indispensable

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

### 󠀁[Easy to use and works well](https://wordpress.org/support/topic/easy-to-use-and-works-well-40/)󠁿

 [dmccan](https://profiles.wordpress.org/dmccan/) 2020 年 12 月 9 日

This is a nice plugin to use in concert with the Chrome dev console. It is easy 
to use and works well. Thank you for making it available.

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

### 󠀁[The plugin to have.](https://wordpress.org/support/topic/the-plugin-to-have/)󠁿

 [Rivmanbx33](https://profiles.wordpress.org/rivmanbx33/) 2020 年 10 月 24 日

Debug on some productions sites, when duplicating and installing in local environment
is not possible, or the configuration is not the same, can be difficult, and using
var_dump on a production site is not indicated. While critical errors and notices
can be catch by wordpress debug log, using this masterpiece of plugin can help to
identify what’s happening in the steps of executing a plugin or theme. Great work,
and sincerely thank you !

 [ 閱讀全部 17 則使用者評論 ](https://wordpress.org/support/plugin/bugfu-console-debugger/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈BugFu Console Debugger〉的開發相關工作。

參與者

 *   [ Federico Andrioli ](https://profiles.wordpress.org/fedeandri/)

[將〈BugFu Console Debugger〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/bugfu-console-debugger)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/bugfu-console-debugger/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/bugfu-console-debugger/)，或
透過 [RSS](https://plugins.trac.wordpress.org/log/bugfu-console-debugger/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/bugfu-console-debugger/)。

## 變更記錄

#### 1.3

 * Adds the ability to log from the WordPress login page
 * Fixes a minor CSS issue

#### 1.2.4

 * Adds compatibility with old PHP versions (tested from 5.3)

#### 1.2.3

 * Updates and simplifies the AJAX calls debugging feature

#### 1.2.2

 * Prevents PHP notice when not logging from a class

#### 1.2.1

 * Update the AJAX calls debugging feature to avoid CPU overload

#### 1.2

 * Adds the ability to debug AJAX calls

#### 1.1

 * Fixes a bug that made it look like BugFu constantly needed to be updated (thanks
   to Jonathan Bossenger)
 * Adds a second optional argument to the log method, in order to allow you to turn
   off the backtrace info which is on by default

#### 1.0

 * First version, log your debug messages from PHP directly to your browser JavaScript
   console

## 中繼資料

 *  版本 **1.3.0**
 *  最後更新 **3 年前**
 *  啟用安裝數 **300+**
 *  WordPress 版本需求 ** 3.8 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.1.10**
 *  語言
 * [English (US)](https://wordpress.org/plugins/bugfu-console-debugger/)
 * 標籤:
 * [debug](https://tw.wordpress.org/plugins/tags/debug/)[debug bar](https://tw.wordpress.org/plugins/tags/debug-bar/)
   [error](https://tw.wordpress.org/plugins/tags/error/)[log](https://tw.wordpress.org/plugins/tags/log/)
   [php](https://tw.wordpress.org/plugins/tags/php/)
 *  [進階檢視](https://tw.wordpress.org/plugins/bugfu-console-debugger/advanced/)

## 評分

 4.8 星，滿分為 5 星

 *  [  16 個 5 星使用者評論     ](https://wordpress.org/support/plugin/bugfu-console-debugger/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/bugfu-console-debugger/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/bugfu-console-debugger/reviews/?filter=3)
 *  [  1 個 2 星使用者評論     ](https://wordpress.org/support/plugin/bugfu-console-debugger/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/bugfu-console-debugger/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/bugfu-console-debugger/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/bugfu-console-debugger/reviews/)

## 參與者

 *   [ Federico Andrioli ](https://profiles.wordpress.org/fedeandri/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/bugfu-console-debugger/)