环境: windows+phpstudy php5.6
官方配置文档: https://xdebug.org/docs/all_settings
phpstorm + xdebug 断点使用方法
https://blog.csdn.net/qq_33862644/article/details/76682298
https://www.cnblogs.com/baocheng/p/5775938.html
[xdebug]
;指定Xdebug扩展文件的绝对路径
zend_extension = "D:\phpStudy\php\php-5.6.27-nts\ext\php_xdebug.dll"
;指定性能分析信息文件的输出目录
xdebug.profiler_output_dir = "D:\phpStudy\tmp\xdebug"
;指定堆栈跟踪文件的存放目录
xdebug.trace_output_dir = "D:\phpStudy\tmp\xdebug"
;启用代码自动跟踪
xdebug.auto_trace = on
;允许收集传递给函数的参数变量
xdebug.collect_params = on
;允许收集函数调用的返回值
xdebug.collect_return = on
;是否开启远程调试
xdebug.remote_enable = on
;指定远程调试的处理协议
xdebug.remote_handler = dbgp
;指定远程调试的主机名
xdebug.remote_host = localhost
;选择何时启动调试连接
xdebug.remote_mode = req
;指定远程调试的端口号
xdebug.remote_port = 9000
;指定传递给DBGp调试器处理程序的IDE Key
xdebug.idekey = PHPSTORM