xdebug安装

Posted 微风星语

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xdebug安装相关的知识,希望对你有一定的参考价值。

 

在mac打开终端:

1.查询php版本 

php -v

查的PHP版本是:

PHP 7.1.13

2.输入命令:

brew search xdebug

3.找到对应php版本的xdebug:

brew install homebrew/php/php71-xdebug

==> Installing php71-xdebug from homebrew/php

==> Downloading https://homebrew.bintray.com/bottles-php/php71-xdebug-2.5.5.el_c

######################################################################## 100.0%

==> Pouring php71-xdebug-2.5.5.el_capitan.bottle.1.tar.gz

==> Caveats

To finish installing xdebug for PHP 7.1:

* /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini was created,

do not forget to remove it upon extension removal.

* Validate installation via one of the following methods:

*

* Using PHP from a webserver:

* - Restart your webserver.

* - Write a PHP page that calls "phpinfo();"

* - Load it in a browser and look for the info on the xdebug module.

* - If you see it, you have been successful!

*

* Using PHP from the command line:

* - Run `php -i "(command-line \'phpinfo()\')"`

* - Look for the info on the xdebug module.

* - If you see it, you have been successful!

==> Summary

以上是关于xdebug安装的主要内容,如果未能解决你的问题,请参考以下文章

Xdebug+phpStorm安装与调试保姆级教程!『通俗易懂』

php安装xdebug扩展,PHPStorm+XDebug单步调试

安装xdebug并配置 php插件

Xdebug安装对应版本与配置

zendStudio安装Xdebug项目断点调试

PHPStorm+XDebug进行调试