E
E
eugene1592021-10-09 20:23:33
PHP
eugene159, 2021-10-09 20:23:33

Why is xdebug crashing? How to fix?

Previously used Open Server. In php.ini I wrote:

max_execution_time      = 0
max_input_time          = -1

And there was no such problem.

Now I use Docker. More precisely, devilbox, which runs through Docker. I registered the same settings in php.ini. Run phpinfo. You can see that the settings have been applied.

I put a breakpoint. I open the page. The page loads for 2 minutes. Then a 503 error is issued:
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

This makes it difficult to debug the code. This was not the case with Open Server.

How to fix it?
I believe the problem is in PHP mode (apache/nginx). I'm right? How can this be checked?
And if it's true in the mode, then what settings should I change so that xdebug does not fall off?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stalker_RED, 2021-10-09
@Stalker_RED

Nginx and apache are not "php mode" but different servers.
Look at what you are using, find the config, set the appropriate time limit.

D
Daria Motorina, 2021-10-10
@glaphire

Xdebug with docker is a bit tricky, try to check as close as possible to this article:
PhpStorm + Docker + Xdebug

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question