-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
XDebug toggling optimizations #995
Comments
Have you tried the xdebug command? https://ddev.readthedocs.io/en/stable/users/usage/commands/#xdebug |
@nickchomey, how does it relate to FrankenPHP and reloading Caddy? Checked the script that it executes and it's completely beyond my question. |
Hah! I'm so sorry, I was working on some stuff in DDEV and somehow thought that this issue was in that repo when I saw this just before going to sleep. I was even looking just now in the DDEV repo for this issue and confused why I couldn't find it. Please ignore my comment (though, do check out DDEV, it is fantastic for php local development - though doesn't yet support caddy or frankenphp) |
So far, I ended up with something dirty AF: First, removed all Second (as I use
Then I updated a
And finally, updated
Result: blazing fast toggling of XDebug and session is continued what improves DX (no need to re-login, re-upload, etc). Dunno if it's a legit way to do so, but at least for me works. If @dunglas is interested in that way, will create a PR. |
Describe you feature request
Is your feature request related to a problem? Please describe.
Reloading container only to toggle XDebug is rather expensive because it involves restarting whole container and its script to detect all the initialization process.
XDEBUG_MODE=debug docker compose…
IMHO is not the optimal way to do so. Also, all the sessions are being destroyed, temporary files discarded what makes development even more frustrating.Describe the solution you'd like
I'd like to have a single command to toggle debugging mode, without a need to restart whole container.
Describe alternatives you've considered
Tried to do on my own by altering
php.ini
files but changes are not taken into the consideration for reload. Tried touchingCaddyfile
to trigger reload and evenfrankenphp reload
but SAPI configuration is kept as is.Will be glad to see a DX improvement for this. Mounting
/tmp
as a volume is a bit dirty. :(The text was updated successfully, but these errors were encountered: