版本:
Mac OS X EI Capitan 10.11.5
XAMPP for Mac 5.6.28
phpStorm for Mac 10.0.1
1. XAMPP配置
定位到 "/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so",这个路径在php.ini配置的时候需要用到
打开php.ini,在最后面加上以下配置信息并保存
zend_extension="/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.profiler_enable=1
xdebug.profiler_output_name=xdebug.cachegrind-out.%s.%p
xdebug.remote_log="/Applications/XAMPP/xamppfiles/logs/xdebug.log"
xdebug.idekey="PHPSTORM"

重启apache服务器,打开phpinfo查看

2. phpStorm配置
快捷键command+,打开Preferences

打开链接,拿到IDE Key,并配置信息




大功告成...
网友评论