Home > Article > Backend Development > Install PHP Xdebug on Mac
brew install php70
brew install php70-xdebug
php -i | grep xdebug.ini
Find the xdebug.ini configuration file. Mine is /usr/local /etc/php/7.0/conf.d/ext-xdebug.ini
vim /usr/local/etc/php/7.0/conf.d/ext-xdebug .ini
Configure in PHPStorm
# My debugging address:
http://localhost:8080/email/send.php?XDEBUG_SESSION_START=15550
Find the configuration file of xdebug.ini. Mine is /usr/local/etc/php/7.0/conf.d/ext-xdebug.ini
<pre class="brush:php;toolbar:false">配置如下:
[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</pre>
#My debugging address: http://localhost:8080/email/send.php?XDEBUG_SESSION_START=15550
The above is the detailed content of Install PHP Xdebug on Mac. For more information, please follow other related articles on the PHP Chinese website!