Skip to content

Commit 6cc6f1c

Browse files
authored
Merge pull request maxpou#16 from meron1122/master
Add xdebug
2 parents f38f160 + b7bae7f commit 6cc6f1c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ Run `docker-compose up -d` instead.
149149
150150
* Permission problem? See [this doc (Setting up Permission)](http://symfony.com/doc/current/book/installation.html#checking-symfony-application-configuration-and-setup)
151151
152+
* How to config Xdebug?
153+
Xdebug is configured out of the box!
154+
Just config your IDE to connect port `9001` and id key `PHPSTORM`
155+
152156
## Contributing
153157
154158
First of all, **thank you** for contributing ♥

php7-fpm/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ RUN "date"
1919
# Type docker-php-ext-install to see available extensions
2020
RUN docker-php-ext-install pdo pdo_mysql
2121

22+
23+
# install xdebug
24+
RUN pecl install xdebug
25+
RUN docker-php-ext-enable xdebug
26+
RUN echo "error_reporting = E_ALL" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
27+
RUN echo "display_startup_errors = On" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
28+
RUN echo "display_errors = On" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
29+
RUN echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
30+
RUN echo "xdebug.remote_connect_back=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
31+
RUN echo "xdebug.idekey=\"PHPSTORM\"" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
32+
RUN echo "xdebug.remote_port=9001" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
33+
34+
2235
RUN echo 'alias sf="php app/console"' >> ~/.bashrc
2336
RUN echo 'alias sf3="php bin/console"' >> ~/.bashrc
2437

0 commit comments

Comments
 (0)