PHP调试配置挂起 - 等待XDebug会话(57%)

时间:2012-02-22 02:17:03

标签: php xampp xdebug

  

可能重复:
  eclipse xdebug session never completes

当我尝试调试php网页时,它会挂断。消息 - 等待XDEbug会话。在右下角还有另一条消息 - 启动mydebugconf:(57%)。

我在x86 Windows 7计算机上运行XAMPP for Windows 1.7.7 with PHP 5.3.8和Apache 2.0。

phpinfo() - xdebug

xdebug.auto_trace   Off Off
xdebug.collect_assignments  Off Off
xdebug.collect_includes On  On
xdebug.collect_params   0   0
xdebug.collect_return   Off Off
xdebug.collect_vars Off Off
xdebug.default_enable   On  On
xdebug.dump.COOKIE  no value    no value
xdebug.dump.ENV no value    no value
xdebug.dump.FILES   no value    no value
xdebug.dump.GET no value    no value
xdebug.dump.POST    no value    no value
xdebug.dump.REQUEST no value    no value
xdebug.dump.SERVER  no value    no value
xdebug.dump.SESSION no value    no value
xdebug.dump_globals On  On
xdebug.dump_once    On  On
xdebug.dump_undefined   Off Off
xdebug.extended_info    On  On
xdebug.file_link_format no value    no value
xdebug.idekey   DTWS01$ no value
xdebug.manual_url   www.php.net www.php.net
xdebug.max_nesting_level    100 100
xdebug.overload_var_dump    On  On
xdebug.profiler_aggregate   Off Off
xdebug.profiler_append  Off Off
xdebug.profiler_enable  Off Off
xdebug.profiler_enable_trigger  Off Off
xdebug.profiler_output_dir  C:\xampp\tmp    C:\xampp\tmp
xdebug.profiler_output_name xdebug_profile.%R::%u   xdebug_profile.%R::%u
xdebug.remote_autostart Off Off
xdebug.remote_connect_back  On  On
xdebug.remote_cookie_expire_time    3600    3600
xdebug.remote_enable    On  On
xdebug.remote_handler   dbgp    dbgp
xdebug.remote_host  localhost   localhost
xdebug.remote_log   c:\xdebug\log.txt   c:\xdebug\log.txt
xdebug.remote_mode  req req
xdebug.remote_port  9000    9000
xdebug.scream   Off Off
xdebug.show_exception_trace Off Off
xdebug.show_local_vars  Off Off
xdebug.show_mem_delta   Off Off
xdebug.trace_format 0   0
xdebug.trace_options    0   0
xdebug.trace_output_dir C:\xampp\tmp    C:\xampp\tmp
xdebug.trace_output_name    trace.%c    trace.%c
xdebug.var_display_max_children 128 128
xdebug.var_display_max_data 512 512
xdebug.var_display_max_depth 3  3

=============================================== ===========

的php.ini

[XDebug]
zend_extension = C:\xampp\php\ext\php_xdebug-2.1.2-5.3-vc9.dll
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "xdebug_profile.%R::%u"
xdebug.remote_autostart=off
xdebug.remote_connect_back =1
xdebug.remote_enable=On
xdebug.remote_handler=dbgp
xdebug.remote_host="localhost"
xdebug.remote_log = "c:\xdebug\log.txt"
xdebug.remote_mode = "req"
xdebug.trace_output_dir = "C:\xampp\tmp"

========================================

netstat -a -b -n |找/我“听”

  TCP    0.0.0.0:80             0.0.0.0:0              LISTENING
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:443            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1025           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1026           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1027           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1029           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1030           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:3306           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:3389           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:5357           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:9000           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:10000          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:37674          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:53794          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:55723          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:60747          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:62062          0.0.0.0:0              LISTENING
  TCP    127.0.0.1:5354         0.0.0.0:0              LISTENING
  TCP    127.0.0.1:6880         0.0.0.0:0              LISTENING
  TCP    127.0.0.1:27015        0.0.0.0:0              LISTENING
  TCP    127.0.0.1:45100        0.0.0.0:0              LISTENING
  TCP    192.168.1.5:139        0.0.0.0:0              LISTENING
  TCP    [::]:80                [::]:0                 LISTENING
  TCP    [::]:135               [::]:0                 LISTENING
  TCP    [::]:443               [::]:0                 LISTENING
  TCP    [::]:445               [::]:0                 LISTENING
  TCP    [::]:1025              [::]:0                 LISTENING
  TCP    [::]:1026              [::]:0                 LISTENING
  TCP    [::]:1027              [::]:0                 LISTENING
  TCP    [::]:1029              [::]:0                 LISTENING
  TCP    [::]:1030              [::]:0                 LISTENING
  TCP    [::]:3306              [::]:0                 LISTENING
  TCP    [::]:3389              [::]:0                 LISTENING
  TCP    [::]:5357              [::]:0                 LISTENING
  TCP    [::]:9000              [::]:0                 LISTENING
  TCP    [::]:10000             [::]:0                 LISTENING
  TCP    [::]:53794             [::]:0                 LISTENING
  TCP    [::]:55723             [::]:0                 LISTENING
  TCP    [::]:62062             [::]:0                 LISTENING

=============================================== ==================

提前感谢您向其他相关信息来源提供建议,建议或指导。

DT

2 个答案:

答案 0 :(得分:2)

这很可能是由于某些服务器路径未在IDE中正确设置。你没有提到你正在使用哪个IDE,所以我无法帮助你。

答案 1 :(得分:0)

我有一个类似的问题让Xdebug与Netbeans合作。这是我发现的。希望能帮助到你。 Xdebug + XAMPP + Netbeans = fail. Cannot get debugger to work in Netbeans