您的位置:首页 > 编程语言 > PHP开发

php xdebug配置

2015-11-27 17:10 232 查看
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


参考: 官方文档



注: time: 累计时间, Mem:内存, function: 调用函数名字, location: 调用函数所在行
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: