php-xdebug配置记录

点点圈 提交于 2019-11-29 00:53:33
[xdebug]
;断点调试
xdebug.remote_enable=On ;远程调试
xdebug.remote_autostart=On ;开启远程调试自动启动
xdebug.remote_host=192.168.33.1
xdebug.remote_port=9001
xdebug.auto_trace=on ;启用代码自动跟踪
xdebug.collect_vars=On ;收集变量
xdebug.collect_return=On ;收集返回值
xdebug.collect_params=On ;收集参数
xdebug.idekey=shijiebang
xdebug.remote_log="/tmp/xdebug.log"

;性能分析
xdebug.profiler_enable=On ;启用性能检测分析
;xdebug.trace_output_dir="/tmp/xdebug_profiler" ;指定堆栈跟踪文件的存放目录
xdebug.profiler_output_dir="/tmp/xdebug_profiler" ;指定性能分析文件的存放目录
xdebug.profiler_output_name="cachegrind.out.%p"
xdebug.profiler_enable_trigger=1

 

xdebg官网:https://xdebug.org生成性能报告需要https://github.com/jokkedk/webgrind/https://github.com/jrfonseca/gprof2dot
gprof2dot安装yum install python3 graphvizyum 源没有3,特么的……,手动来吧……wget http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tgztar -xzvf Python-3.3.0.tgzcd Python-3.3.0./configure --prefix=/usr/local/python3makemake install安装好之后要修改一下webgrind的配置文件,把python的路径修改一下,这样才能生成性能报告的那个图。

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!