phpstorm+xdebug/php项目调试

前提:项目使用xampp集成

一、下载xdebug,当到xampp/php/exp目录下

 二、配置php.ini

[Xdebug]
zend_extension="D:/xampp/php/ext/php_xdebug.dll"
xdebug.collect_params=On
xdebug.collect_return=On
xdebug.auto_trace=On
xdebug.trace_output_dir="D:\xampp\php\tmp\xdebug"
xdebug.profiler_enable=On
xdebug.profiler_enable_trigger=On
xdebug.profiler_output_dir="D:\xampp\php\tmp\xdebug"
#如果开启此,将忽略下面的 xdebug.remote_host 的参数。 <一台webserver有多个开发者的工作目录的时候使用,如:p1.xx.com,p2.xx.com,p3.xx.com 。。。等。 >
xdebug.remote_connect_back = On
#允许远程调试
xdebug.remote_enable=On
#远程调试地址
xdebug.remote_host=127.0.0.1
#远程调试端口
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
#调试器的关键字
xdebug.idekey=PHPSTORM

三、启动xampp

四、配置phpstorm

(一)、【File】-【Settings】-【Languages&Frameworks】-【PHP】

 

(二)、【File】-【Settings】-【Languages&Frameworks】-【PHP】-【Debug】

(三)、【File】-【Settings】-【Languages&Frameworks】-【PHP】-【Debug】-【DBGp Proxy】


(四)、【File】-【Settings】-【Languages&Frameworks】-【PHP】-【Server】

 (五)、【Edit Configurations】

 1、【+】-【PHP Web Page】

2、

 (六)、【Run】-【Web Server Debug Validation】

 【Validate】出现以下为正确:

五、访问页面即可debug

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值