V
V
Vlad Avtomat2019-03-28 15:24:29
PHP
Vlad Avtomat, 2019-03-28 15:24:29

Why does the request, when the listener is on, not reach the breakpoint and hang?

After updating Ubuntu, the request started to hang when listener is enabled in phpstorm xdebug. How can I fix this?
All settings are normal. I went through https://xdebug.org/wizard.php. phpize matches. I decided to reinstall it. My phpize with php 7.3 matched master. phpinfo shows xdebug. In php -v also. Moreover, in phpstorm it catches the connection. The problem is that when I send a request to the server with the listener enabled, my request doesn't hit the breakpoint, the request just hangs and nothing happens. What could be the problem ? Who knows ? All in all, I have no idea what the problem could be. I really need your help, help, who knows what could be the problem.
1) I went through all the hints from https://xdebug.org/wizard.php
2) In phpinfo everything is ok.
3) Everything seems to be fine in the phpstorm settings. I didn't change them, I always worked with those who are standing now.
4) After I disable the listener, the request goes through immediately.
5) After submitting a request, the stop button next to the listener does not light up.
6) I enabled "First Line Break in PHP Scripts"
After that I caught the first line of my app with debager. But when I pressed F 8, the debugger didn't reach my breakpoint, but hung up like before. In an endless pause.
7) If you set max number of connections in xdebug phpstorm settings like 5-7 then the debugger will stop at the first line of the application, but then when you press F 8 then the debugger panel will show Connected
8)
netstat -a -n | grep 9000
tcp 0 0 0.0.0.0:9000 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53658 127.0.0.1:9000 ESTABLISHED
My php.ini [xdebug]
xdebug.default_enable = On;
xdebug.var_display_max_depth = 6;
xdebug.remote_enable = On;
xdebug.remote_host = 127.0.0.1;
xdebug.remote_port = 9000;
xdebug.remote_handler = dbgp;
xdebug.idekey = phpstorm;
xdebug.remote_autostart = 1;
xdebug.profiler_enable_trigger = 1;
xdebug.profiler_enable = 0;
xdebug.profiler_output_dir = /tmp/xdebug/profiler/;
xdebug.show_local_vars = 1;
xdebug.overload_var_dump = 1
What could be the problem ? I can't figure it out at all... :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Urich, 2019-03-28
@Urichalex

You are looking for port 9000, and in the config 9009. Usually FPM works on port 9000 by default, and conflicts are possible on this. Since you specified port 9009 in the config, then specify 9009 in the Debug port and in the DBGP proxy -> Port in the storm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question