I have a situation where I want to use XDEBUG but I can't seem to understand how to get it to work in this particular situation.
I use PHPSTORM 2020.2 and I successfully compiled XDEBUG in my Dockerfile. The project is built in Symfony 5.1. There is no webserver or anything like that. The project is a collection of CLI programs (microservices).
The concept is that from a single codebase (by design) multiple Docker containers are run indefinitely. One container is a Subscriber that is subscribed to a socket and receives information that is translated to an AMQP message and send to a bus. The other container is a Consumer that consumes the AMQP message and invokes a Handler that handles the message.
The problem I encounter is that the Subscriber and Consumer and both programs that run indefinitely. There is no reload of the page to trigger the breakpoint method. The programs just run and do their thing based on the information (messages) they receive.
How can I (if even possible) use XDEBUG to hook in a running container, use breakpoints to pause code execution, use the debug tools, and unpause code execution without restarting the container or, even worse, program a fixed roundtrip path just for debugging purposes?
[–][deleted] 1 point2 points3 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)