docs
docs copied to clipboard
Add tutrorial on configuring XDebug
With and without using Docker for:
- Web.
- Command line.
- Tests.
IDEs to cover:
- PhpStorm
- VSCode
Important things to mention for PhpStorm:
- Settings → PHP → Servers correct path mappings. Root of the project in container should match root in the local file system.
- Installing browser extension from PHP → Debug.
SERVER_NAME=localhost SERVER_PORT=80 XDEBUG_CONFIG="idekey=phpstorm client_host=host.docker.internal"
Docker compose on Linux extra config:
extra_hosts:
- "host.docker.internal:host-gateway"