-
-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
worker is not restarting when using xdebug on symfony project #975
Comments
If you just |
When I put Weirdly setting |
Interesting. If you turn on xdebug logs, does it give any useful information? I wonder if this might be an xdebug bug? |
For the first request I see following logs
But no zdebug logs for the second request |
I'm able to reproduce on a project I'm working on. Disabling xdebug seems to solve it. I'll step through with gdb later and see what causes it—like yours, it seems to be an issue with ending the request. |
I tried now without a worker mode, it is working properly when worker mode is disabled. |
What happened?
I am new to Frankenphp. I was setting up a new symfony 6.4 project with FrankenPHP and faced issue with xdebug when xdebug.mode=debug.
I also check #563 but it seems not to be the same issue.
Environment:
image: dunglas/frankenphp:1.1.5-php8.3 (also tried dunglas/frankenphp:1.1.5-php8.2)
xdebug: v3.3.2
symfony: 6.4.*
runtime/frankenphp-symfony: 0.2.0
For development environment I set num of workers to 1 and
FRANKENPHP_LOOP_MAX=1
.What happens is, the first request is served without issue, the second request loading goes into endless loading.
I compared container logs with
xdebug.mode=off
(working one) andxdebug.debug=debug
. The difference is that as you can see from the screenshot, there is norestarting
log on the left side (whenxdebug.debug=debug
).To debug the issue I tried to setup the same environment but without Symfony, just
index.php
. In this case I did not face the same issue.Steps to reproduce:
composer create-project symfony/skeleton:"6.4.*" project
composer require runtime/frankenphp-symfony
extra
composer dump-autoload && bin/console cache:clear
Now start the container and request 2 times.
Build Type
Docker (Debian Bookworm)
Worker Mode
Yes
Operating System
macOS
CPU Architecture
Apple Silicon
PHP configuration
Relevant log output
The text was updated successfully, but these errors were encountered: