xDebug会话永远不会启动

时间:2012-03-16 03:53:57

标签: eclipse settings xdebug

我刚刚将操作系统更改为Windows 7 64。 我的机器上安装了Apache 2.2,PHP 5.3(32位)TS和Eclipse 3.7(64位),并安装了PDT。

我的php.ini中的xDebug部分

zend_extension = "C:\Program Files (x86)\PHP\ext\php_xdebug-2.1.4-5.3-vc9.dll"
xdebug.auto_trace = 0
xdebug.collect_includes = 1
xdebug.collect_params = 0
xdebug.collect_return = 0
xdebug.default_enable = 1
xdebug.extended_info = 1
xdebug.idekey = "STATION24$"
xdebug.max_nesting_level = 100
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = "C:\WINDOWS\temp"
xdebug.profiler_output_name = "xdebug_profile.%p"
xdebug.remote_autostart = 0
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_log = 1
xdebug.remote_mode = "req"
xdebug.remote_port = 9001
xdebug.show_exception_trace = 0
xdebug.show_local_vars = 0
xdebug.show_mem_delta = 1
xdebug.trace_format = 0
xdebug.trace_output_dir = "C:\WINDOWS\Temp"
xdebug.trace_output_name = "trace.%c"
xdebug.var_display_max_depth = 5

在Eclipse中,我已经配置了PHP-> Debug部分,如图所示:

enter image description here enter image description here enter image description here

现在,当我尝试启动调试时,Eclipse会在启动调试会话时冻结。

enter image description here

所以,我在过去读过这个问题,人们说这是因为有些应用程序使用xDebug端口(在我的情况下为9001),但是我已经检查过,没有其他人使用过这个端口,只有xDebug这样做。 我的防火墙已禁用,因此没有任何应用程序可以阻止与xDebug的连接。有一点 - “作为CLI应用程序调试”运行良好,只有“作为Web应用程序调试”不起作用。

我不知道该怎么办,请帮忙。

2 个答案:

答案 0 :(得分:0)

如果遇到问题并且您不知道Xdebug端是否工作,或者IDE端,那么从Xdebug 2.2.0RC1开始,远程调试日志也会记录连接问题。

答案 1 :(得分:0)

只是一个想法,你提到PHP TS。也许你应该使用xdebug TS呢? (虽然我最近到处读到你最好不要使用TS,所以可能想改变php而不是TS等。)