我使用的所有时间:
print'<pre>';
print_r($var);
print'</pre>';
调试 php。
我想推倒这棵树
[params] => JRegistry Object
(
[data:protected] => stdClass Object
(
[show_title] =>
[link_titles] =>
[show_intro] =>
使用jquery
最佳答案
我使用Kint这非常好。要使用它,只需输入:
// shows name of variable, collapsible value and place you called it from
d(varname);
/* pretty stack trace that lets me expand the source, and see
the parameters passed to the function; same is achieved via `d(1);` */
Kint::trace()
屏幕截图:
(来源:github.io)
关于php - jquery <pre> 调试崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7907292/