xdebug.remote_handler 设置在 PHP.INI 中,但未显示在 PHPinfo 中 [英] xdebug.remote_handler set in PHP.INI, but not showing in PHPinfo
问题描述
我正在尝试让 Xbdebug 与 NetBeans 一起运行,以便调试一些 PHP 代码(我确信几年前我让它工作了,然后切换了 IDE,现在想切换回来).
I am trying to get Xbdebug to run with NetBeans, in order to debug some PHP code (I am sure that I had it working a few years back, then switched IDE & now want to switch back).
当我尝试调试时,状态栏显示
When I try to debug, the status bar shows
而且,当它没有在一个简单的 echo('hello');
文件的第一行上遇到断点,并且我停止调试时,它会显示
And, when it doesn't hit a breakpoint on line one of a simple echo('hello');
file, and I stop debugging, it shows
请注意,我的参数中有 XDEBUG_SESSION_START=netbeans-xdebug
,但我认为这不是问题(目前).
Please note that I have XDEBUG_SESSION_START=netbeans-xdebug
in my parameters, but I don't think that that is the problem (yet).
相反,请查看上面有关 Xdebug 设置的消息.
Instead, look at the message above concerning Xdebug settings.
在我的 php.inin 文件中,我有
In my php.inin file, I have
[PHP]
zend_extension=F:\DropBox\programs\xampp\php\ext\php_xdebug-2.9.6-7.4-vc15-x86_64.dll
xdebug.remote_enable=On
xdebug.remote_host=127.0.0.1
xdebug.remote_handler=dbgp <============== (arrow not in file, just shown here to help)
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.remote_log=m:\xdebug.log
xdebug.profiler_enable = 0;
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir=f:\DropBox\programs\xampp\htdocs\_PHP_profile
xdebug.profiler_output_name=cachegrind.out.%s.%t
但是,当我查看 PHPinfo 时,xdebug.remote_handler
没有设置 - 知道为什么吗?
BUT, when I look at PHPinfo, there is no setting for xdebug.remote_handler
- any idea why?
xdebug
xdebug support enabled
Version 2.9.6
Support Xdebug on Patreon, GitHub, or as a business
Debugger enabled
IDE Key me
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.file_link_format no value no value
xdebug.filename_format no value no value
xdebug.force_display_errors Off Off
xdebug.force_error_reporting 0 0
xdebug.gc_stats_enable Off Off
xdebug.gc_stats_output_dir C:\Windows\Temp C:\Windows\Temp
xdebug.gc_stats_output_name gcstats.%p gcstats.%p
xdebug.halt_level 0 0
xdebug.idekey no value no value
xdebug.max_nesting_level 256 256
xdebug.max_stack_frames -1 -1
xdebug.overload_var_dump 2 2
xdebug.profiler_append Off Off
xdebug.profiler_enable Off Off
xdebug.profiler_enable_trigger Off Off
xdebug.profiler_enable_trigger_value no value no value
xdebug.profiler_output_dir f:\DropBox\programs\xampp\htdocs\_PHP_profile f:\DropBox\programs\xampp\htdocs\_PHP_profile
xdebug.profiler_output_name cachegrind.out.%s.%t cachegrind.out.%s.%t
xdebug.remote_addr_header no value no value
xdebug.remote_autostart On On
xdebug.remote_connect_back Off Off
xdebug.remote_cookie_expire_time 3600 3600
xdebug.remote_enable On On
xdebug.remote_host 127.0.0.1 127.0.0.1
xdebug.remote_log m:\xdebug.log m:\xdebug.log
xdebug.remote_log_level 7 7
xdebug.remote_mode req req
xdebug.remote_port 9000 9000
xdebug.remote_timeout 200 200
xdebug.scream Off Off
xdebug.show_error_trace 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_enable_trigger_value no value no value
xdebug.trace_format 0 0
xdebug.trace_options 0 0
xdebug.trace_output_dir C:\Windows\Temp C:\Windows\Temp
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
推荐答案
当我查看 PHPinfo 时,xdebug.remote_handler 没有设置 - 知道为什么吗?
when I look at PHPinfo, there is no setting for xdebug.remote_handler - any idea why?
这是正常的.xdebug.remote_handler
选项已在 Xdebug 2.9.0 中删除.在内部,它现在总是等于 dbgp
.
It is normal. The xdebug.remote_handler
option had been removed in Xdebug 2.9.0. Internally it now ALWAYS equal to be dbgp
.
修复错误 #1720:删除多余的 xdebug.remote_handler 设置
Fixed bug #1720: Remove superfluous xdebug.remote_handler setting
- https://xdebug.org/docs/all_settings#remote_handler
- https://xdebug.org/updates#x_2_9_0
- https://github.com/xdebug/xdebug/commit/3e764b6e78fc88c53e76f78cb3e76f78c68cb3
这篇关于xdebug.remote_handler 设置在 PHP.INI 中,但未显示在 PHPinfo 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!