在Mac OSX El Capitan上使用phpstorm启用xdebug [英] Enabling xdebug with phpstorm on mac OSX El Capitan
问题描述
在将Macbook升级到El Capitan之前,我对Phpstorm 9,php 5.6(通过自制程序),xdebug(通过自制程序)进行了很好的设置.
Before upgrading my macbook to El Capitan I had a sweet setup of Phpstorm 9, php 5.6 (via homebrew), xdebug (via homebrew).
但是,在过去一个月左右的时间里,我一直不知所措,试图弄清楚如何使该设置再次起作用.
For the last month or so, however, I have been breakin my head, trying to figure out how to make that setup work again.
我很感谢你们可能有任何想法.
I would appreciate any ideas you guys might have.
谢谢,Eyal
P.S. 这是我的设置:
P.S. Here are my settings:
xdebug版本和ide键
xdebug远程设置
xdebug会话Cookie
phpstorm中的xdebug端口
phpstorm中的PHP配置
在phpstorm中调试调试
xdebug日志
Log opened at 2015-11-19 22:33:49
I: Checking remote connect back address.
I: Remote address found, connecting to 127.0.0.1:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/eyalsh/Sites/test/index.php" language="PHP" protocol_version="1.0" appid="73266" idekey="PHPSTORM"><engine version="2.3.3"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2015 by Derick Rethans]]></copyright></init>
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>
Log closed at 2015-11-19 22:33:49
推荐答案
基于提供的信息:请将xdebug端口(在php.ini
和PhpStorm中)更改为另一个端口(例如9001),并验证它是否不是在使用相同的sudo lsof -nP -iTCP -sTCP:LISTEN
命令执行此操作之前先将其占用.
Based on the provided info: please change xdebug port (in both php.ini
and PhpStorm) to some another port (e.g. 9001) and verify that it is not occupied before doing that using the same sudo lsof -nP -iTCP -sTCP:LISTEN
command.
现在看来与php-fpm
(两个程序都使用相同的端口)发生冲突.
Right now there seems to be a conflict with php-fpm
(both programs using the same ports).
PS
您可能需要重新启动Web服务器,以查看从php.ini
获取的那些更改.
P.S.
You may need to restart your web server to see those changes picked up from php.ini
.
这篇关于在Mac OSX El Capitan上使用phpstorm启用xdebug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!