mac下phpstorm配置xdebug
给php安装xdebug扩展 安装扩展(前提是你的php也是用brew安装的) brew install php55-xdebug --build-from-source 进入下面的目录打开xdebug配置文件: cd /usr/local/etc/php/5.5/conf.d vim ext-xdebug.ini 编辑如下: [xdebug] zend_extension="/usr/local/opt/php55-xdebug/xdebug.so" xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_host=localhost xdebug.remote_port=9010 xdebug.remote_log=/tmp/xdebug.log xdebug.profiler_enable=0 xdebug.profiler_output_name=xdebug.cachegrind-out.%s.%p xdebug.idekey="PHPSTORM" 配置完成后要重启php-fpm: ...