mac下phpstorm配置xdebug

1.下载地址 http://www.xdebug.org/download.php,下载源码版的 

tar -zxvf xdebug-2.4.0rc3.tgz
cd xdebug-2.4.0RC3/
使用whereis phpize查看phpize的路径
whereis phpize
执行使用详细路径的phpize
make
make install

安装好后提示安装目录:

Installing shared extensions:     /usr/local/Cellar/php55/5.5.38/lib/php/extensions/no-debug-zts-20121212/


之后在php.ini中加入:

[Xdebug]

zend_extension=xdebug.so

xdebug.remote_enable = on

;xdebug.remote_handler=dbgp

xdebug.remote_host="127.0.0.1"

xdebug.remote_port=9111

xdebug.profiler_enable = 1

xdebug.profiler_enable_trigger = off

xdebug.profiler_output_name = cachegrind.out.%t.%p

xdebug.remote_autostart = on


重启apache,

sudo apachectl restart


打开phpstorm,file->Default Preferences->Languages & Frameworks

php language level: 我这里是5.5

default interpreters :新建一个,php路径写你的php地址






DBGP Proxy设置:



接下来配置server,我这个版本里面没有server。在run->debug Configurations 里设置



添加server



接下来就可以调试了。。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值