L
L
leha_trushin2017-11-17 10:45:04
PHP
leha_trushin, 2017-11-17 10:45:04

Netbeans 8.2 + OpenServer 5.2.5 + PHP 5.4 + Xdebug 2.4 + Windows 7 x64 connection hangs forever, why?

Hello!
Everything (debugging) was working fine until today. Today, the debugging process began to hang at startup. Netbeans is forever waiting for a connection to Xdebug. Settings of course from yesterday until the glitch occurred did not change in any way. The only suspicion fell on the fact that Windows updates were installed yesterday.
In general, I just haven’t tried it yet, it doesn’t work to revive the debugging process. To start configuration:
Xdebug (php.ini file):
[Xdebug]

spoiler
zend_extension="%sprogdir%/modules/php/%phpdriver%/ext/php_xdebug.dll"
;xdebug.default_enable = 1
xdebug.auto_trace = 0
xdebug.collect_includes = 1
;xdebug.collect_params = 4
;xdebug.collect_return = 1
;xdebug.collect_assignments = 1
;xdebug.collect_vars = 1
xdebug.dump.REQUEST = *
xdebug.dump.SESSION = *
xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD
;xdebug.dump.COOKIE =
;xdebug.dump.FILES =
;xdebug.dump.GET =
;xdebug.dump.POST =
xdebug.dump_globals = 1
xdebug.dump_once = 1
xdebug.dump_undefined = 1
xdebug.extended_info = 1
;xdebug.file_link_format = ""
xdebug.idekey = "netbeans-xdebug"
;xdebug.manual_url = "http://www.php.net"
xdebug.max_nesting_level = 256
xdebug.overload_var_dump = 1
;xdebug.profiler_append = 1
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir="%sprogdir%/userdata/temp/xdebug/"
xdebug.profiler_output_name = "cachegrind.out.%H%R"
xdebug.remote_autostart = 1
xdebug.remote_connect_back = 1
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = 127.0.0.1
xdebug.remote_log = "%sprogdir%/userdata/logs"
;xdebug.remote_mode = "req"
xdebug.remote_port = 9000
;xdebug.scream = 1
;xdebug.show_exception_trace = 0
;xdebug.show_local_vars = 1
;xdebug.show_mem_delta = 1
;xdebug.trace_format = 1
;xdebug.trace_options = 1
xdebug.trace_output_dir = "%sprogdir%/userdata/temp/xdebug/"
;xdebug.trace_output_name = "trace.%H%R"
xdebug.var_display_max_children = 256
;xdebug.var_display_max_data = 1024
xdebug.var_display_max_depth = 16
;xdebug.remote_cookie_expire_time = 3600

Netbeans (environment and project settings):
spoiler
5a0e8f2ee73dd813698879.jpeg5a0e8f656866d341817240.jpeg5a0e8f70287d4249106595.jpeg5a0e8f7740aae883097242.jpeg

File hosts:
127.0.0.1 local.******.ru redirection to local host is registered
I tried to play with Xdebug settings, as described, for example, here - does not help.
I re-read everything in detail and tried it from here - it does not help either. Trying to find out the causes of the problems:
spoiler
Там в одном из пунктом описано, что Netbeans должен слушать все интерфейсы IPv4 и отдельно локалхост. У меня упомянутая по ссылке команда выдает такую картину
5a0e91923b550991964178.jpeg
То есть Netbeans действительно слушает все, что нужно, но ответа не получает.

When you stop the debug session, the page XDEBUG_SESSION_START=id of the debug session opens (which should open when the debug session starts), which is strange. That is, even outwardly Netbeans debugging process began to run differently.
PS I broke my whole head, what could be the reasons, I tried a bunch of options, I wasted more than one hour. So I would really appreciate any help and tips!
UPD. Reinstalling OpenServer and Netbeans didn't help either...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question