php xdebug配置

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=start_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

参考: 官方文档

注: time: 累计时间, Mem:内存, function: 调用函数名字, location: 调用函数所在行

以折线图的形式展示跟踪结果(内存,时间,函数调用情况)

posted @ 2015-11-27 17:10  myD  阅读(452)  评论(0编辑  收藏  举报