phpstudy2018 安装xdebug扩展

第一步:查看PHP版本信息

第二步:到xdebug下载页去下载最新的版本(注意:要下载PHP对应版本)

第三步:把扩展php_xdebug-2.7.0alpha1-7.2-vc15-nts.dll放到php的扩展目录(ext文件中)

            我的路径为:D:\phpStudy\PHPTutorial\php\php-7.2.1-nts

第四步:打开php.ini文件,配置如下:

[XDebug]
zend_extension=php_xdebug-2.7.0alpha1-7.2-vc15-nts.dll
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir ="D:\phpStudy\tmp\xdebug"
xdebug.trace_output_dir ="D:\phpStudy\tmp\xdebug"
xdebug.profiler_output_name = "cache.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port = 9000
xdebug.remote_mode = "req"
xdebug.idekey = PHPSTORM

说明:改项也可以写绝对路径

zend_extension=D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\ext\php_xdebug-2.7.0alpha1-7.2-vc15-nts.dll

第五步:在查看phpinfo中是否有xdebug扩展开启,如果没有xdebug信息,说明版本不对或配置错误

 

或者在cmd窗口输入php -m命令查看扩展,注意如果报命令无效时,要添加php.exe到环境变量中

如果你已安装还xdebug,那么请看下文,如果进行断点调试如何使用xdebug断点调试代码??

有用就给个赞呗!

【精选秒杀】热卖云产品限量抢,云服务器20元/月起,服务稳定,价格更优
https://cloud.tencent.com/redirect.php?redirect=1039&cps_key=8ee0f9c89dfe0958071ea9b77e110670&from=console

淘宝优惠券: http://tq.xinrtd.com
京东优惠券: http://jp.xinrtd.com

  • 2
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值