Apache服务器上的Xdebug和FastCGI


Xdebug and FastCGI on Apache Server

我正试图在我的远程开发站点上安装Xdebug。我的php.ini文件中有以下内容:

xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_connect_back=On
xdebug.remote_port = 9001

我已经将端口设置为9001,因为我知道默认值(9000)将与FastCGI冲突。

但这是行不通的。有了这些设置,我得到了内部错误和以下记录:

[Fri Nov 07 15:37:53 2014] [warn] [client 162.201.236.210] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Fri Nov 07 15:37:53 2014] [error] [client 162.201.236.210] Premature end of script headers: index.php

更新:我尝试更改FcgidBusyTimeout,但没有帮助。

我错过了什么?感谢

您必须将CDebug设置为自动接受连接、根据请求自动启动并设置正确的服务器IP。

您还设置了调试客户端和XDebug实例之间的预共享密钥。

xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_host="127.0.0.1"
xdebug.remote_port=9001
xdebug.idekey="my_key"