脚本宝典收集整理的这篇文章主要介绍了Mac下配置phpstorm,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
使用brew install安装对应版本的XDebug。使用命令:
brew seArch xdebug
对于我的mac来说,要安装的版本是php7.1的XDebug,故而安装:
brew install homebrew/php/php71-xdebug
安装完毕后执行php -i | grep xdebug查看是否有输出(有输出就是安装上了)
xdebug
xdebug support => enabled
xdebug.auto_trace => Off => Off
xdebug.cli_color => 0 => 0
...
接下来 成功环节
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!
配置环节
以上是脚本宝典为你收集整理的Mac下配置phpstorm全部内容,希望文章能够帮你解决Mac下配置phpstorm所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。