Create detailed documentation and improve support for Xdebug #408
Replies: 2 comments 1 reply
-
|
Added a PR for spin that would add the logic described by @emilebourquin to the spin laravel basic template: serversideup/spin-template-laravel-basic#19 |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the great work on this project. Thanks in advance from a grateful user of your excellent project. # Dockerfile.dev
FROM serversideup/php:8.3-fpm-nginx
USER root
# Install Xdebug
RUN install-php-extensions xdebug
# Write Xdebug config
RUN echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.start_with_request=trigger" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.client_host=host.docker.internal" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.client_port=9003" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.idekey=PHPSTORM" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
EXPOSE 9003
USER www-data |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
👉 Describe the problem
Some users rely on Xdebug and there are extra steps involved to get it to work.
👥 Problem evidence & reach
🏆 How to solve this problem
🥰 Describe the "impact" on users?
It will dramatically reduce the headache and effort for configuring Xdebug with PHP + Docker.
💯 How do we validate the problem is solved?
Beta Was this translation helpful? Give feedback.
All reactions