ck1987 发表于 2015-12-23 16:25:37

mac下的phpstorm的xdebug安装

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




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



;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
页: [1]
查看完整版本: mac下的phpstorm的xdebug安装