From 398b76cd57e37aa296b874d5937d24d7ca69e5d5 Mon Sep 17 00:00:00 2001 From: Emil Huseynaliev Date: Sat, 9 Nov 2024 22:05:09 -0500 Subject: [PATCH] Add "xdebug.start_with_request=yes" override to enable "trigger-less" breakpoints in IDE's --- runtimes/8.0/Dockerfile | 1 + runtimes/8.1/Dockerfile | 1 + runtimes/8.2/Dockerfile | 1 + runtimes/8.3/Dockerfile | 1 + runtimes/8.4/Dockerfile | 1 + 5 files changed, 5 insertions(+) diff --git a/runtimes/8.0/Dockerfile b/runtimes/8.0/Dockerfile index e1254b18..e30a34da 100644 --- a/runtimes/8.0/Dockerfile +++ b/runtimes/8.0/Dockerfile @@ -62,6 +62,7 @@ RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 sail COPY start-container /usr/local/bin/start-container COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY php.ini /etc/php/8.0/cli/conf.d/99-sail.ini +RUN echo "xdebug.start_with_request=yes" >> /etc/php/8.0/cli/conf.d/99-xdebug.ini RUN chmod +x /usr/local/bin/start-container EXPOSE 80/tcp diff --git a/runtimes/8.1/Dockerfile b/runtimes/8.1/Dockerfile index ab1ee7cd..963a5d53 100644 --- a/runtimes/8.1/Dockerfile +++ b/runtimes/8.1/Dockerfile @@ -61,6 +61,7 @@ RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 sail COPY start-container /usr/local/bin/start-container COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY php.ini /etc/php/8.1/cli/conf.d/99-sail.ini +RUN echo "xdebug.start_with_request=yes" >> /etc/php/8.1/cli/conf.d/99-xdebug.ini RUN chmod +x /usr/local/bin/start-container EXPOSE 80/tcp diff --git a/runtimes/8.2/Dockerfile b/runtimes/8.2/Dockerfile index 3aacc61c..57eed63a 100644 --- a/runtimes/8.2/Dockerfile +++ b/runtimes/8.2/Dockerfile @@ -62,6 +62,7 @@ RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 sail COPY start-container /usr/local/bin/start-container COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY php.ini /etc/php/8.2/cli/conf.d/99-sail.ini +RUN echo "xdebug.start_with_request=yes" >> /etc/php/8.2/cli/conf.d/99-xdebug.ini RUN chmod +x /usr/local/bin/start-container EXPOSE 80/tcp diff --git a/runtimes/8.3/Dockerfile b/runtimes/8.3/Dockerfile index 2b84991c..1c148868 100644 --- a/runtimes/8.3/Dockerfile +++ b/runtimes/8.3/Dockerfile @@ -63,6 +63,7 @@ RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 sail COPY start-container /usr/local/bin/start-container COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY php.ini /etc/php/8.3/cli/conf.d/99-sail.ini +RUN echo "xdebug.start_with_request=yes" >> /etc/php/8.3/cli/conf.d/99-xdebug.ini RUN chmod +x /usr/local/bin/start-container EXPOSE 80/tcp diff --git a/runtimes/8.4/Dockerfile b/runtimes/8.4/Dockerfile index 76018cfe..89610477 100644 --- a/runtimes/8.4/Dockerfile +++ b/runtimes/8.4/Dockerfile @@ -64,6 +64,7 @@ RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 sail COPY start-container /usr/local/bin/start-container COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY php.ini /etc/php/8.4/cli/conf.d/99-sail.ini +RUN echo "xdebug.start_with_request=yes" >> /etc/php/8.4/cli/conf.d/99-xdebug.ini RUN chmod +x /usr/local/bin/start-container EXPOSE 80/tcp