Skip to content

Instantly share code, notes, and snippets.

@eerison
Last active May 20, 2025 14:18
Show Gist options
  • Select an option

  • Save eerison/a505bd545524ce99babe44653201b7dc to your computer and use it in GitHub Desktop.

Select an option

Save eerison/a505bd545524ce99babe44653201b7dc to your computer and use it in GitHub Desktop.
xdebug Configuration
services:
php:
volumes:
- ~/.config/nvim-external/xdebug-config/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
#It is necessary for linux environment.
extra_hosts:
- "host.docker.internal:host-gateway"
zend_extension=xdebug
xdebug.client_host=host.docker.internal
# Recomendation from Vscode xdebug repository
# https://github.com/xdebug/vscode-php-debug?tab=readme-ov-file#installation
xdebug.mode = debug
xdebug.start_with_request = yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment