Skip to content
Discussion options

You must be logged in to vote

There is no need to use the magic hostname or do that workaround in docker-compose, you can just set the xdebug host to xdebug://gateway.

I see you are running in worker mode. That means these are long running scripts, so the debugging session started with the worker, not your request. That can be worked around by calling xdebug_connect_to_client() somewhere in your code.

This is the relevant part:

Normally, Xdebug tries to start a debugging session at the start of the request. If a debugging client is not listening at that point, then Xdebug does not try to re-establish a connection during the remainder of the request.

In the situation where one long running PHP process handles multip…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@bschnitz
Comment options

@withinboredom
Comment options

Answer selected by bschnitz
@bschnitz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #1082 on October 10, 2024 16:23.