Php Can';t使Xdebug与eclipsepdt一起工作
我已经用Php Can';t使Xdebug与eclipsepdt一起工作,php,eclipse,xdebug,eclipse-pdt,Php,Eclipse,Xdebug,Eclipse Pdt,我已经用XAMPP安装了eclipsepdt和Xdebug。虽然网上有各种各样的解决方案,但我找不到解决问题的办法 下面是我的XAMPP中的phpinfo(),它显示安装了xdebug: xdebug xdebug support enabled Version 2.2.6 IDE Key XDEBUG_ECLIPSE Supported protocols Revision DBGp - Common DeBuGger Protocol $Revision: 1.145 $ Direc
XAMPP
安装了eclipsepdt
和Xdebug
。虽然网上有各种各样的解决方案,但我找不到解决问题的办法
下面是我的XAMPP中的phpinfo(),它显示安装了xdebug:
xdebug
xdebug support enabled
Version 2.2.6
IDE Key XDEBUG_ECLIPSE
Supported protocols Revision
DBGp - Common DeBuGger Protocol $Revision: 1.145 $
Directive Local Value Master Value
xdebug.auto_trace Off Off
xdebug.cli_color 0 0
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.coverage_enable On On
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 no value no value
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 \ \
xdebug.profiler_output_name cachegrind.out.%p cachegrind.out.%p
xdebug.remote_autostart Off Off
xdebug.remote_connect_back Off Off
xdebug.remote_cookie_expire_time 3600 3600
xdebug.remote_enable On On
xdebug.remote_handler dbgp dbgp
xdebug.remote_host localhost:8756 localhost:8756
xdebug.remote_log no value no value
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_enable_trigger Off Off
xdebug.trace_format 0 0
xdebug.trace_options 0 0
xdebug.trace_output_dir \ \
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 PDT在调试模式下运行时暂停57%,Eclipse显示“启动:等待Xdebug会话”
下面是生成的URL
127.0.0.1:8756/Mywebsite/index.html?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=14170721856664
我关注过各种网站,但所有的努力都白费了
下面是Xdebug的php.ini部分:
zend_extension = D:\xampp\php\ext\php_xdebug-2.2.6-5.5-vc11.dll
;xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "D:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = "localhost:8756"
xdebug.trace_output_dir = "D:\xampp\tmp"
;xdebug.remote_connect_back=1
xdebug.remote_port=9000
注意:由于默认的apache端口8080被占用,我已将apache配置为8756
也没办法
提前谢谢 您的配置无效。将当前的
xdebug.remote\u主机
仅替换为主机。此处不允许使用端口
顺便说一句:您默认启用了评测。这可能会降低每个请求的速度;) 经过几个小时的努力,我终于有了在php.ini中使用以下行的OMG it works体验:
zend_extension = "d:/wamp/bin/php/php5.4.12/zend_ext/php_xdebug-2.2.3-5.4-vc9-x86_64.dll"
zend_extension_ts="d:/wamp/bin/php/php5.4.12/zend_ext/php_xdebug-2.2.3-5.4-vc9-x86_64.dll"
zend_debugger.allow_hosts=127.0.0.1/32,192.168.2.3/32
xdebug.remote_enable=On
xdebug.remote_host=localhost
xdebug.remote_connect_back=1
xdebug.remote_port=9100
注意d:/wamp/bin/php/php5.4.12/zend_ext/php_xdebug-2.2.3-5.4-vc9-x86_64.dll必须替换为路径/dll。
我在php.ini中更改了端口。确保在Eclipse中使用相同的端口
(调试配置-->调试器-->配置-->调试端口-->9100)
问候,
Mike将其替换为:xdebug.remote\u host=localhost。还是一样!远程连接返回=1,eclipse xdebug设置中的多会话也不起作用?你确定端口9000在你的windows上是免费的吗?netstat-ano | find“9000”提供:TCP 0.0.0.0:9000 0.0.0:0侦听166 TCP[:]:9000[:]:0侦听166我试图将其更改为9001。还是一样!您能否按照以下步骤重试: