Skip to content

Instantly share code, notes, and snippets.

@ChrisTaylorDeveloper
ChrisTaylorDeveloper / mysqldump-remote-database-with-local-docker-image.md
Last active July 6, 2024 09:43
Run mysqldump on remote database using local docker image
@ChrisTaylorDeveloper
ChrisTaylorDeveloper / vs-code-php-debug-docker-xdebug.md
Last active July 6, 2024 07:40
How to configure the PHP-Debug extension for VS Code when serving the PHP project from Docker with xdebug

The Dockerfile

Only add the xdebug.remote_log line if you need to troubleshoot.

FROM php:7.1-apache

RUN yes | pecl install xdebug \
    && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
    && echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/xdebug.ini \
    && echo "xdebug.remote_autostart=1" >> /usr/local/etc/php/conf.d/xdebug.ini \