码迷,mamicode.com
首页 > 其他好文 > 详细

Xdebug安装对应版本与配置

时间:2017-06-19 00:37:20      阅读:291      评论:0      收藏:0      [点我收藏+]

标签:host   code   fpm   tor   3.2   参数   原创   class   ble   

Xdebug安装地址https://xdebug.org/download.php,进入下载页面后点击custom installation instructions,可以找到适合的Xdebug版本。

技术分享

 如果你点击了custom installation instructions,会进入下面的页面,把本地运行phpinfo()后的页面的html源代码复制粘贴到输入框,点击下面的Analyse my phpinfo() output提交即可。

技术分享

会跳到类似这样的页面,因为我已经安装,所以显示XDEBUG版本

技术分享 

1.下载php_xdebug-2.5.4-5.6-vc11-nts.dll

2.将下载的文件移动到“C:\ Program Files(x86)\ PHP \ v5.6 \ ext”

3.更新C:\Program Files (x86)\PHP\v5.6\php.ini并更改行zend_extension = "C:\Program Files (x86)\PHP\v5.6\ext\php_xdebug-2.5.4-5.6-vc11-nts.dll"

4.重新启动网络服务器

 通过phpinfo()可以看到xdebug已安装!!!

技术分享

 

附上本人在php.ini的XDebug的配置信息

[XDebug] 
;调试功能模块儿 
;extension=php_xdebug-2.2.5-5.3-vc9.dll 
zend_extension = "C:\Program Files (x86)\PHP\v5.6\ext\php_xdebug-2.5.4-5.6-vc11-nts.dll" 
xdebug.remote_handler=dbgp 
xdebug.idekey=PHPSTORM
;开启远程调试 
xdebug.remote_enable = On 
;远程主机 
xdebug.remote_host=localhost 
;主机端口 
xdebug.remote_port=9001
;开启自动跟踪 
xdebug.auto_trace = On 
;开启异常跟踪 
xdebug.show_exception_trace = On 
;开启远程调试自动启动 
xdebug.remote_autostart = On 
;收集变量 
xdebug.collect_vars = On 
;收集返回值 
xdebug.collect_return = On 
;收集参数 
xdebug.collect_params = On 
;临时跟踪信息输出 
;xdebug.trace_output_dir="d:/PHP/php-5.3.28/temp" 
;显示局部变量 
xdebug.show_local_vars = On 
xdebug.profiler_enable = On 
;xdebug.profiler_output_dir ="d:/PHP/php-5.3.28/temp" 
xdebug.trace_enable_trigger =On

技术分享

主机端口    xdebug.remote_port=9001

编辑器key  xdebug.idekey=PHPSTORM

这两个这么配置是为了避免与fpm冲突和后面与phpstorm一同使用

phpstorm配置Xdebug链接:

 

  版权声明:本文为博主原创文章,未经博主允许不得转载。

 

Xdebug安装对应版本与配置

标签:host   code   fpm   tor   3.2   参数   原创   class   ble   

原文地址:http://www.cnblogs.com/cxscode/p/7045827.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!