Chinaunix首页 | 论坛 | 博客
  • 博客访问: 434888
  • 博文数量: 101
  • 博客积分: 578
  • 博客等级: 中士
  • 技术积分: 872
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-12 22:24
文章分类

全部博文(101)

文章存档

2015年(1)

2014年(83)

2012年(17)

我的朋友

分类: PHP

2015-06-17 15:18:11




步骤一:
安装php-xdebug扩展
brew install php55-xdebug


步骤二:
在php.ini增加以下配置:

[xdebug]
;zend_extension = '/usr/local/opt/php55-xdebug/xdebug.so'
;开启自动跟踪
xdebug.auto_trace = on
;远程调试打开
xdebug.remote_enable = on
;远程处理器dbgp
xdebug.remote_handler = dbgp
;远程主机
xdebug.remote_host= 127.0.0.1
;远程端口
xdebug.remote_port = 9001    
;idekey,安装完xdebug扩展后在phpinfo里可见
xdebug.idekey = chaosuper


步骤三:
配置phpstorm:

一:
在Preferences里的Debug/DBGp Proxy里配置如下:
IDE key: chaosuper
Host:127.0.0.1
Port:9001

二:
在Run的Configuration里配置
添加:
PHP Web Application
添加:
Server:
Host: ***.com,Port:80,Debugger:Xdebug

阅读(1303) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~