Reputation: 55
I've got two vagrant machines, "front-end" and "back-end". "front-end" communicates with "back-end" via curl.
If I hit "back-end" from Postman, my breakpoints work. If I hit "front-end" from a web browser, my breakpoints in "front-end" work but the ones in "back-end" do not work.
In Languages & Frameworks -> PHP -> Debug, I've set Max. simultaneous connections to 20.
What am I missing?
Upvotes: 0
Views: 200
Reputation: 165188
You have xdebug.remote_connect_back = 1
-- this option will override any values that you have set for xdebug.remote_host
.
When you send requests directly to back-end, xdebug connects to the IDE because requestor IP matches IP where IDE is running. But if request is sent from front-end to back-end then xdebug will be attempting to connect back to front-end (actual requestor) instead of your IDE.
You need to set xdebug.remote_connect_back = 0
and provide correct IP/host name for xdebug.remote_host
.
Upvotes: 1