Answer the question
In order to leave comments, you need to log in
Why does XDebug under Mac OS X take a long time to connect even if no one is listening on its port?
Greetings.
I am currently developing client applications for the site. Previously only for Android, now here's iOS.
The server side is written in PHP and XDebug is used for debugging.
Previously, development was carried out on a Windows machine, now, for obvious reasons, I switched to Mac OS X.
In applications, during debugging, I always add XDEBUG_SESSION_START=1 to server requests so that at any time I can connect from the IDE to debug the server side.
Here's the problem: everything worked fine on a Windows machine. If debugging is not enabled in the IDE (that is, no one is listening on port 9000), then XDebug simply did not connect anywhere, and the data was loaded at normal speed.
On a poppy, each request to the server is accompanied by waits of 30 seconds, so you either have to comment on adding a flag in the application, or remember to enable debugging in the IDE.
Can something be done about it? The only thing I found was to decrease the value of default_socket_timeout in php.ini, but this setting will change the connection timeouts for other scripts, and there is a chance to get a timeout where it should not be ...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question