brew install php70
brew install php70-xdebug
php -i | grep xdebug.ini
找到xdebug.ini的配置文件個人是/usr/local/etc/php/7.0/conf.d/ext-xdebug.inivim /usr/local/etc/php/7.0/conf.d/ext-xdebug.ini
php
配置以下: [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
個人調試地址:http://localhost:8080/email/send.php?XDEBUG_SESSION_START=15550
vim