mac 配置php,phpstorm的xdebug
阿新 • • 發佈:2018-11-14
1,下載安裝php-xdebug
cd xdebug-2.5.1/
phpize
./configure
make && make install
2,配置php.ini 檔案
[xdebug]
zend_extension = /usr/local/Cellar/[email protected]/5.6.37/pecl/20131226/xdebug.so
xdebug.remote_enable = on
xdebug.remote_autostart = 1
xdebug.remote_handler = dbgp
xdebug.idekey = "PHPSTORM"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port = 9001
xdebug.auto_trace=1
3,重啟自己的php-fpm 如果brew安裝的brew services start php5.6命令重啟 或者 sudo killall php-fpm && sudo php-fpm
版本選擇2.5.3成功
4,phpstorm配置
php.ini 中的配置xdebug.idekey,xdebug.remote_host,xdebug.remote_port
大功告成,教程比較簡介,但是完成基本沒啥問題,需要注意的地方都給大家標出來了,如果還是有不太明白童鞋可以留言給我