mac 配置php,phpstorm的xdebug

1,下载安装php-xdebug

cd xdebug-2.5.1/

 phpize

./configure

make && make install

2,配置php.ini 文件

扫描二维码关注公众号,回复: 4068152 查看本文章

[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

大功告成,教程比较简介,但是完成基本没啥问题,需要注意的地方都给大家标出来了,如果还是有不太明白童鞋可以留言给我

猜你喜欢

转载自blog.csdn.net/Baron0071/article/details/83827136