debug php inside a docker container with vscode (on mac os)

To debug php code inside a Docker container using VSCode as your IDE, proceed as follows: Install php and the relevant extensions using your Dockerfile like so: Add the following xdebug config and copy it over to your image like so: Please note specifically: The client_host “host.docker.internal” is a Docker for Mac specific thing. It… Continue Reading debug php inside a docker container with vscode (on mac os)

debugging in vscode

I am currently debugging a 10+ year old PHP project, trying to migrate it to PHP 7.2 While debugging VSCode would start giving me “error evaluating code” and jump out of the debug session after the first step. When I stopped the debugger and reloaded the page, the page would load fine. So it didn’t… Continue Reading debugging in vscode