最近开发发现自己电脑var_dump时候没有如下效果。
果断google、百度下。
^_^#
抱歉,没有找到结果。
就小小的机智了下,右键查看源码,答案有了。
是xdebug带来的福利。
添加xdebug方法如下:
根据自己的PHP版本去下载一个php_xdebug.dll文件。
找到php.ini文件。
在末尾添加如下:
1
2
3
4
5
6
7
8
9
10
11
12
<code>; XDEBUG Extension</code>
<code>zend_extension =</code><code>"D:/wamp/bin/php/php5.3.27/zend_ext/php_xdebug-2.2.0-5.3-vc9.dll"</code>
<code>[xdebug]</code>
<code>xdebug.remote_enable = on</code>
<code>xdebug.remote_handler = dbgp</code>
<code>xdebug.remote_host = localhost</code>
<code>xdebug.remote_port = 9001</code>
<code>xdebug.profiler_enable = off</code>
<code>xdebug.profiler_enable_trigger = off</code>
<code>xdebug.profiler_output_name = cachegrind.out.%t.%p</code>
<code>xdebug.profiler_output_dir =</code><code>"D:/wamp/tmp"</code>
重启apache服务。
好了,小伙伴们,happy的去玩var_dump吧!