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

描述

This plugin is basically a wrapper for the excellent dBug (http://dbug.ospinto.com) class for PHP debugging, written by Kwaku Otchere..

Instead of var_dump or echo, you can call wp_dbug( $variable ) to get clear, dynamic debug output of strings, arrays, or objects.

Thanks to @borkweb, the plugin is now compatible with the WP Debug Bar plugin (https://wordpress.org/extend/plugins/debug-bar/) for extra debugging goodness!

安裝

  1. Download the plugin and unzip it into wp-content/plugins.
  2. Activate the plugin by going to Plugins and choosing Activate.
  3. Use for debug output anywhere within WordPress by calling wp_dbug( $variable ).

常見問題

Q: This is just a class with a wrapper for WordPress. Why bother?
A: It took 15 minutes to write, and saves me 5 minutes every time I need to debug a new blog. ‘Nuff said.

Q: Can I use this stuff outside of WordPress?
A: Yes! Go to http://dbug.ospinto.com and download the dBug class, then include it in whatever project you’re working on.

評價

There are no reviews for this plugin.

貢獻者及開發者

“wp-dBug” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 wp-dBug 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄