zend_extension = "D:/developsoftware/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll"
;[xdebug]xdebug.remote_enable = offxdebug.profiler_enable = offxdebug.profiler_enable_trigger = offxdebug.profiler_output_name = cachegrind.out.%t.%pxdebug.profiler_output_dir = "D:/developsoftware/wamp/tmp"xdebug.show_local_vars=0上面是配置文件自带的
;zend extension="D:/developsoftware/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll"
;[xdebug];xdebug.remote_enable=On;xdebug.profiler_enable=On;xdebug.profiler_enable_trigger=On;xdebug.profiler_output_name=cachegrind.out.%t.%p;xdebug.profiler_output_dir="D:/developsoftware/wamp/tmp";xdebug.show_local_vars=0下面是在网上找的,感谢:http://jingyan.baidu.com/album/cbcede0729988102f40b4d9c.html?picindex=2
下面是最终配置:
zend_extension = "D:/developsoftware/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll";[xdebug];xdebug.remote_enable = off;xdebug.profiler_enable = off;xdebug.profiler_enable_trigger = off;xdebug.profiler_output_name = cachegrind.out.%t.%p;xdebug.profiler_output_dir = "D:/developsoftware/wamp/tmp";xdebug.show_local_vars=0;上面是软件自带的配置已经基本全部注释
;zend extension="D:/developsoftware/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll"
;[xdebug];xdebug.remote_enable=On;xdebug.profiler_enable=On;xdebug.profiler_enable_trigger=On;xdebug.profiler_output_name=cachegrind.out.%t.%p;xdebug.profiler_output_dir="D:/developsoftware/wamp/tmp";xdebug.show_local_vars=0
;下面是Xdebug在php100中复制的配置感谢php100
;是否开启自动跟踪
xdebug.auto_trace = On;是否开启异常跟踪xdebug.show_exception_trace = On;是否开启远程调试自动启动xdebug.remote_autostart = On;是否开启远程调试xdebug.remote_enable = On;允许调试的客户端IPxdebug.remote_host=192.168.1.107;远程调试的端口(默认9000)xdebug.remote_port=9000;调试插件dbgpxdebug.remote_handler=dbgp;是否收集变量xdebug.collect_vars = On;是否收集返回值xdebug.collect_return = On;是否收集参数xdebug.collect_params = On;跟踪输出路径xdebug.trace_output_dir="d:\xdebug";是否开启调试内容xdebug.profiler_enable=On;调试输出路径xdebug.profiler_output_dir="d:\xdebug";下面是开启Xdebug的内置函数的配置:
xdebug.max_nesting_level = 50 最大循环或调试次数,防止死循环
xdebug.dump_once = On xdebug.dump_globals = Onxdebug.dump_undefined = Onxdebug.dump.SERVER = REQUEST_METHOD,REQUEST_URI,HTTP_USER_AGENTxdebug.dump.REQUEST=*xdebug.show_exception_trace = On 仍将强制执行异常跟踪xdebug.show_local_vars = 1;将打印每个函数调用的最外围中的所有局部变量,包括尚未初始化的变量xdebug.var_display_max_depth = 6
下面是安装调试工具后的调试效果: