xdebug.remote_handler установлен в PHP .INI, но не отображается в PHPinfo - PullRequest
0 голосов
/ 01 августа 2020

Я пытаюсь запустить Xbdebug с NetBeans, чтобы отладить некоторый код PHP (я уверен, что он работал несколько лет назад, затем переключил IDE и теперь хочу переключиться обратно).

Когда я пытаюсь отладить, в строке состояния отображается enter image description here

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, но я не думаю, что это проблема (пока).

Вместо этого посмотрите сообщение выше, касающееся Настройки Xdebug.

В моем php .inin файле у меня есть

[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 - есть идеи, почему?

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

1 Ответ

1 голос
/ 01 августа 2020

когда я смотрю PHPinfo, там нет настройки для xdebug.remote_handler - есть идеи, почему?

Это нормально. Параметр xdebug.remote_handler был удален в Xdebug 2.9.0 . Внутренне он теперь ВСЕГДА равен dbgp.

Исправлена ​​ошибка № 1720: удаление лишних настроек xdebug.remote_handler

...