xdebug

[XDebug]

xdebug.profiler_output_dir="D:\Log\xdebug"
xdebug.trace_output_dir="D:\Log\xdebug"
xdebug.remote_log="D:/Log/xdebug.log"
zend_extension="C:/wamp64/bin/php/php7.2.10/zend_ext/php_xdebug-2.6.1-7.2-vc15-x86_64.dll"

;允许收集传递给函数的参数变量
xdebug.collect_params=on

;允许收集函数调用的返回值
xdebug.collect_return=on

;启用代码自动跟踪
xdebug.auto_trace=on

;性能优化,本文用不到,选择关闭(不关闭,会以约每分钟几百M的速度产生大量日志文件,用不上一天你的硬盘就哭了)
xdebug.profiler_enable = Off ;关掉性能检测分析

;指定性能分析信息文件的名称
xdebug.profiler_output_name = cachegrind.out.%t.%p

;远程端口,指phpstorm配置的端口
xdebug.remote_port=10000

;指定远程调试的处理协议
xdebug.remote_handler = "dbgp"

;是否允许远程终端,这个必须开启
xdebug.remote_enable = on
;远程IP地址,就算你phpstorm所在的IP。如果你是在本地的话直接写127.0.0.1就可以了
xdebug.remote_host=127.0.0.1
xdebug.idekey = PHPSTORM ;这里是调试器的关键字
xdebug.remote_autostart=1
xdebug.remote_mode=req
  • 新版本
[Xdebug]
xdebug.idekey=PHPSTORM

zend_extension=D:/phpstudy_pro/Extensions/php/php7.3.4nts/ext/php_xdebug.dll
xdebug.collect_params=1
xdebug.collect_return=1
xdebug.auto_trace=1
xdebug.trace_output_dir=D:/phpstudy_pro/Extensions/php_log/php7.3.4nts.xdebug.trace
xdebug.profiler_enable=1
xdebug.profiler_output_dir=D:/phpstudy_pro/Extensions/php_log/php7.3.4nts.xdebug.profiler
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=10018
xdebug.remote_handler=dbgp
xdebug.mode=debug

原文链接: xdebug 版权所有,转载时请注明出处,违者必究。
注明出处格式:流沙团 ( http://www.gyarmy.com/post-677.html )

发表评论

0则评论给“xdebug”