首页 > Web开发 > 详细

phpstudy安装xdubug拓展配合phpstorm调试

时间:2020-08-29 18:49:00      阅读:72      评论:0      收藏:0      [点我收藏+]

phpstudy 安装xdubug拓展

一、安装xdebug拓展

查看phpinfo()

 技术分享图片

 

 

 

 

我的版本是php7.032位,VC14

下载地址:https://xdebug.org/download/historical

 技术分享图片

 

 

 

 

下载好了放到php的扩展目录下

D:\phpstudy\PHPTutorial\php\php-7.0.12-nts\ext

 

 技术分享图片

 

 

 

 

打开php.ini,添加配置,重启apache

[XDebug]

zend_extension=php_xdebug.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

 

 

 技术分享图片

 

 

 

 

 

查看phpini(),不过这里安装的xdebug2.6版本不行,我就直接用phpstudy自带的2.4.1版本了

 技术分享图片

 

 

 

安装成功

二、配置phpstorm

 

 技术分享图片

 

 

 

技术分享图片

 

 

 技术分享图片

 

 

 

 

 

 

这是我本地的测试地址

 

技术分享图片

 

 

 技术分享图片

 

 

 

 

添加一个php web page,server 选择刚刚添加的服务

 技术分享图片

 

 

 

点击这个电话

 

 

三、谷歌浏览器下载安装xdebug-helper插件

  1. 将下载好的xdebug helper-1.4.3.crx文件,改名为“xdebug helper-1.4.3.rar”
  2. 将压缩好的“xdebug helper-1.4.3.rar”解压到指定目录,例如:C:\Users\Administrator\Desktop
  3. 打开谷歌扩展应用管理,在谷歌浏览器输入chrome://extensions/
  4. 加载C:\Users\Administrator\Desktop目录下解压后的xdebug helper-1.4.3目录。

 

 

选择Debug

 技术分享图片

 

 

 

最后就可以断点调试了

 

phpstudy安装xdubug拓展配合phpstorm调试

原文:https://www.cnblogs.com/nosmoking/p/13582288.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!