码迷,mamicode.com
首页 > Web开发 > 详细

php xdebug配置

时间:2015-11-27 19:50:08      阅读:239      评论:0      收藏:0      [点我收藏+]

标签:

2015年11月27日 17:08:54

[xdebug]
;用触发的形式去开启跟踪调试 get/post/cookie 中添加变量"XDEBUG_TRACE"
xdebug.auto_trace=0 ;关闭自动跟踪
xdebug.trace_enable_trigger=1 ;开启触发性跟踪
xdebug.trace_enable_trigger_value="start_trace" ;与此值相等就会触发跟踪, XDEBUG_TRACE=strat_trace
xdebug.trace_format=0 ;肉眼可读的格式
xdebug.trace_options=0 ;覆盖之前的trace, 1:追加
xdebug.trace_output_dir=/...../xdebug/trace
xdebug.trace_output_name=trace.%R


;通过触发的形式去开启性能分析, get/post/cookie 中添加变量 "XDEBUG_PROFILE"
;以URI命名性能分析文件
xdebug.profiler_enable=0 ;关闭自动分析
xdebug.profiler_enable_trigger=1 ;开启触发性分析
xdebug.profiler_enable_trigger_value="start_profiler" ;与此值相等就会触发分析, XDEBUG_PROFILE=start_profiler
xdebug.profiler_output_dir=/...../xdebug/profiler
xdebug.profiler_output_name=cachegrind.out.%R
xdebug.profiler_append=0
;以肉眼可读的格式显示内存使用
xdebug.show_mem_delta=1

参考: 官方文档

php xdebug配置

标签:

原文地址:http://www.cnblogs.com/iLoveMyD/p/5001234.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!