In this post we will see how to debug a remote PHP based application using XDebug and SSH tunnels, with a setup that can be used even on production environments (because, yes, some edge case issues will only appear in production).
Xdebug on production environments? This is a no-go on most situations. But sometimes there is no other alternative. Directly hooking into a production environment to dig through an issue that you cannot reproduce locally can save you a lot of time, and reduce your application downtime.