[WordPress] 外掛分享: Pretty Debug

首頁外掛目錄 › Pretty Debug
WordPress 外掛 Pretty Debug 的封面圖片
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
4630 天前
最後更新
問題解決
WordPress 3.5+ v1.0 上架:2013-07-10

內容簡介

使 var_dump 和 print_r 更易讀

當可能時,使用 http://queryposts.com API 引用函數輸出。

使用 r 取代 var_dump
使用 rt 以純文字模式顯示。

例如:

r($GLOBALS['wp_query']->get_posts());
rt($GLOBALS['wp_query']->get_posts());

註:

可能無法在 IE 上運作
不要在生產網站上使用此插件,但您可能已經知道了
更多用法請參閱 https://github.com/digitalnature/php-ref

所有工作由 digitalnature 完成,我只是將它包裝成 WordPress 外掛並調整了內嵌調試的外觀。

請將問題報告給:https://github.com/wycks/WP-Pretty-Debug

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Pretty Debug」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Make var_dump’s and print_r’s more readable
Function output references with http://queryposts.com API when possible.

Use r instead of var_dump
Use rt for text mode.

For example:
r($GLOBALS['wp_query']->get_posts());
rt($GLOBALS['wp_query']->get_posts());

Notes :

Probably doesn’t work in ie
Don’t use this on a production site but you probably already know that
More usage https://github.com/digitalnature/php-ref

All the work was done by digitalnature I just wrapped it into a WordPress plugin and changed the look for inline debugging.
Please report issues to: https://github.com/wycks/WP-Pretty-Debug

延伸相關外掛

文章
Filter
Apply Filters
Mastodon