php windows调试,Windows 安装php调试工具 Xdebug

1 选择你的版本

比如我的:

6afdb788a961f8ecbbc2db8271ffb975.png

关键是这三项:

PHP Version      7.3.0

Architecture       x86 (x86是32位系统,X64指的是64位系统)

Zend Extension Build   API320180731,TS,VC15

然后去官网下载对应的文件

1e7f41fb8f5ac0eaea7e1987b2bbc26d.png

2 将下载的文件放入你的php\ext目录

比如我的目录是 F:\xmapp\php\ext

5d1fa4bb704a5def7522a28515c0a1b3.png

3 编辑php.ini

插入以下代码

427298f3bc2e2940d6df6707a9c1cada.png

[Xdebug]

;指定Xdebug扩展文件的绝对路径

zend_extension=F:\xmapp\php\ext\php_xdebug-2.7.0-7.3-vc15.dll

;启用性能检测分析

xdebug.profiler_enable=On

;启用代码自动跟踪

xdebug.auto_trace=on

;允许收集传递给函数的参数变量

xdebug.collect_params=On

;允许收集函数调用的返回值

xdebug.collect_return=On

;指定堆栈跟踪文件的存放目录

xdebug.trace_output_dir="C:\Users\Administrator\Desktop\xdebug"

;指定性能分析文件的存放目录

xdebug.profiler_output_dir="C:\Users\Administrator\Desktop\xdebug"

xdebug.profiler_output_name = "cachegrind.out.%p"

xdebug.remote_enable = On

xdebug.remote_port=9000

xdebug.remote_handler = dbgp

xdebug.remote_host = localhost

xdebug.var_display_max_depth = 10

4 重启apache

5 再次查看phpinfo()

出现xdebug 说明已安装完成

eae5a7f1ef00234e84fff407ef4d1900.png

标签:Xdebug,remote,Windows,profiler,ext,xdebug,output,php

来源: https://www.cnblogs.com/polax/p/10595499.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值