
內容簡介
使 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
外掛標籤
開發者團隊
原文外掛簡介
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
