Macにphp7+xdebugをインストールするメモ

インストール手順
brew install php70
brew install php70-xdebug
php -i | grep xdebug.ini
vim /usr/local/etc/php/7.0/conf.d/ext-xdebug.ini

設定内容
[xdebug]
zend_extension=”/usr/local/opt/php70-xdebug/xdebug.so”
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9001
xdebug.idekey = PHPSTORM
xdebug.remote_autostart=1
xdebug.remote_log=/var/tmp/xdebug.log

Comments are closed.