Flip between non xdebug local dev (much fast) to xdebug local dev (not fast but much insights) at the flick of a cookie (single click via xdebug browser extension) — by @jenko For some projects, developing with Xdebug running on every request is an acceptable solution — especially on Linux, where there are little to no performance penalties for running Docker. In most cases though it is better to be able to enable Xdebug selectively. In a typical Docker PHP setup we would have 1 Nginx/Apache containerand 1 PHP container (with Xdebug). In our setup we are still running 1 Nginx container, but instead of 1 PHP container we are going to split it into 2: — one PHP container without Xdebug — one PHP container with Xdebug