1,下载安装php-xdebug

mac 配置php,phpstorm的xdebug

cd xdebug-2.5.1/

 phpize

./configure

make && make install

mac 配置php,phpstorm的xdebug

mac 配置php,phpstorm的xdebug

 

2,配置php.ini 文件

mac 配置php,phpstorm的xdebug

[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

 

mac 配置php,phpstorm的xdebug

版本选择2.5.3成功

 

4,phpstorm配置

mac 配置php,phpstorm的xdebug

 

mac 配置php,phpstorm的xdebug

mac 配置php,phpstorm的xdebug

php.ini 中的配置xdebug.idekey,xdebug.remote_host,xdebug.remote_port

mac 配置php,phpstorm的xdebug

mac 配置php,phpstorm的xdebug

mac 配置php,phpstorm的xdebug

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

mac 配置php,phpstorm的xdebug

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-02-08
  • 2021-08-26
  • 2021-09-16
  • 2021-08-06
  • 2021-10-25
猜你喜欢
  • 2022-12-23
  • 2021-11-21
  • 2022-01-02
  • 2021-10-15
  • 2021-08-01
  • 2021-11-27
  • 2022-03-11
相关资源
相似解决方案