小编cim*_*mmx的帖子

PHP远程调试:XDebug无法连接到JetBrains的php Storm客户端

我想通过以下软件配置进行远程调试:

Win 7 Pro 64位WAMP Server 2.2(32位)包括.Apache 2.2.22,PHP 5.4.3,XDebug php_xdebug-2.2.1-5.4-vc9.dll JetBrains PHPStorm 4.0.3

1.)WAMP启动并运行,我的站点可以在localhost/fox /下找到

2.)PHP Storm有一个项目,我的源文件和apache别名localhost/fox之间有一个映射

2.)我安装了php扩展XDebug并将以下行添加到我的php.ini中

[xdebug]
zend_extension="c:/wamp/bin/php/php5.4.3/zend_ext/php_xdebug-2.2.1-5.4-vc9.dll"
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_connect_back=On
xdebug.remote_autostart=On
xdebug.profiler_enable=On
xdebug.profiler_enable_trigger=off
xdebug.profiler_output_name=cachegrind.out.%t.%p
xdebug.profiler_output_dir="c:/wamp/tmp"
xdebug.remote_log="C:/wamp/tmp/xdebug.log"
xdebug.remote_cookie_expire_time=6000
Run Code Online (Sandbox Code Playgroud)

这应该配置远程调试XDebug和回调地址.

我在这里检查了我的安装:xdebug.org/wizard.php

3.)我配置了phpstorm,首先我添加了本地服务器

然后在这里检查我的设置

http://www.bilder-hochladen.net/files/jrn0-2-c81e-jpg-nb.html

(我也试过127.0.0.1/fox作为服务器地址,而不是localhost)

我的调试设置:http: //www.bilder-hochladen.net/files/jrn0-1-c4ca-jpg.html

现在我重启我的apache,我进入phpstorm,设置一个断点(它是红色的),点击该功能

Run  -> Start listen to PHP Debug Connections
Run Code Online (Sandbox Code Playgroud)

电话接收器正在变成绿色,这究竟是什么意思,但它对我来说是一个正面的信号.

当我现在在本地webserver absolutley上运行我的php脚本没有任何反应时,程序运行在断点上并且不会停止.

在Xdebuggers日志(C:/wamp/tmp/xdebug.log)中,我发现这些消息的负载如下:

 I: Checking remote connect back address.
 I: Remote address found, connecting to ::1:9000.
 E: Could not connect to client. :-(
 Log closed at 2012-07-19 14:21:08
Run Code Online (Sandbox Code Playgroud)

在互联网的某个地方,我发现了暗示,Windows防火墙可以阻止通信,所以我把它关闭了完整但但没有帮助. …

php remote-debugging xdebug apache2 phpstorm

19
推荐指数
2
解决办法
2万
查看次数

标签 统计

apache2 ×1

php ×1

phpstorm ×1

remote-debugging ×1

xdebug ×1