There was an error while loading. Please reload this page.
Install Chrome Xdebug plugin.
https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc?hl=en
Config in Lagoon
Enable DOCKERHOST in .env.
# Enable static dockerhost DNS DOCKERHOST=host.docker.internal
Rebuild docker images
ahoy build cli or ahoy build
Enable Xdebug in docker image
ahoy debug
Configure Visual Studio Code
launch.json
{ "version": "0.2.0", "configurations": [ { "name": "Listen for Xdebug", "type": "php", "request": "launch", "port": 9000, "hostname": "localhost", "pathMappings": { "/app/config": "${workspaceFolder}/config", "/app/web/sites/default/files": "${workspaceFolder}/files", "/app/web/themes/custom/custom": "${workspaceFolder}/themes/custom" } // "stopOnEntry": true, // "log": true, } ] }
Optional: Sync application folder out from cli image into workspace folder.
ahoy my sync-app
Mapping app folder in launch.json pathMapping entries.
pathMapping
"/app" : "${workspaceFolder}/app",