-
设置 PHPStorm 的PHP设置
选择PHP版本
选择
# php.ini 目录
/usr/local/etc/php/5.6/php.ini
# php 执行文件
/usr/local/opt/php56/bin/php
/usr/local/Cellar/php56/5.6.12/bin/php
- 配置xdebug
- 下载xdebug
brew install php56-xdebug
- 配置xdebug的路径
/usr/local/etc/php/5.6/conf.d/ext-xdebug.ini
修改成
zend_extension="/usr/local/opt/php56-xdebug/xdebug.so"
xdebug.remote_enable = 1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.scream=0
xdebug.cli_color=1
xdebug.show_local_vars=1
- 期间有可能会下载以下内容
brew update
brew upgrade
brew doctor
php -i|grep xdebug
brew install PHPUnit
网友评论