Getting setup and running with Xdebug in a docker container these days is now fairly simple and is composed of two main steps:
- Ensure you've got XDebug installed and enabled in your PHP docker image, for example:
# Installing Xdebug with PHP 7.3 images: RUN pecl install xdebug \ && docker-php-ext-enable xdebug