在 Eclipse PDT 中等待 XDebug 会话 57% [英] Waiting for the XDebug Session 57% in Eclipse PDT
问题描述
在我写这条消息时浏览提示,似乎这是一个带有各种补丁的棘手问题,但没有明确的答案......无论如何,我试试我的机会,就在这里.我在 Ubuntu 10.04 上使用 Eclipse Helios PDT,XDebug 和 php.ini 中的相应部分如下:
Browsing the hints when I write this message it seems this is a tough question with all kind of patches, but no clear answer ... Anyway, I try my chance, here it is. I'm using Eclipse Helios PDT on Ubuntu 10.04, with XDebug and the corresponding section in php.ini as following:
xdebug support enabled
Version 2.0.5
Supported protocols Revision
DBGp - Common DeBuGger Protocol $Revision: 1.125.2.6 $
GDB - GNU Debugger protocol $Revision: 1.87 $
PHP3 - PHP 3 Debugger protocol $Revision: 1.22 $
Directive Local Value Master Value
xdebug.auto_trace 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.idekey no value no value
xdebug.manual_url http://www.php.net http://www.php.net
xdebug.max_nesting_level 100 100
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 /tmp /tmp
xdebug.profiler_output_name cachegrind.out.%p cachegrind.out.%p
xdebug.remote_autostart Off Off
xdebug.remote_enable Off Off
xdebug.remote_handler dbgp dbgp
xdebug.remote_host localhost localhost
xdebug.remote_log no value no value
xdebug.remote_mode req req
xdebug.remote_port 9000 9000
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 /tmp /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
到目前为止,我一直在使用 Eclipse 进行 PHP 开发,没有任何问题,但从未使用过调试.当我在调试模式下启动项目时,我在后台在浏览器中正确启动了应用程序,我的 by Debug/PHPDebug 透视图是空的,而在 Eclipse 控制台中,我在这篇文章的标题中有消息.感谢您的帮助
I've been using Eclipse for PHP development without any problem so far, but never used debugging. When I launch the project in debugging mode I get the application correctly launched in the browser in the background, my by Debug/PHPDebug perspective is empty, while in the Eclipse console I have the message in the Title of this posting. Thanks for any help
推荐答案
如果 Eclipse 在 57% 处停止,则无法启动远程调试过程.情况可能是这样,当...
If Eclipse is stopping at 57%, then the remote debugging process couldn't be started. This might the case, when...
您没有在文件/PHP/php.ini 中启用远程调试:
You didn't enable remote debugging in the file /PHP/php.ini:
xdebug.remote_enable=on
远程主机 IP 地址(启动调试会话的客户端(您的 IDE))不正确:
the remote host ip address (client which starts debug session (your IDE)) isn't correct:
xdebug.remote_host=IP_ADDRESS
您可以使用以下命令启用多主机"远程调试,而不是定义远程主机的 IP 地址:
Instead of defining the remote hosts ip address you can enable "multihost" remote debugging using:
xdebug.remote_connect_back=1
还要查看所有设置的 xdebug 文档:http://xdebug.org/docs/all_settings
Also checkout the xdebug documentation for all settings: http://xdebug.org/docs/all_settings
这篇关于在 Eclipse PDT 中等待 XDebug 会话 57%的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!