File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ it's recommended to add a custom stage to the end of the `Dockerfile`.
1212# Dockerfile
1313FROM symfony_php as symfony_php_debug
1414
15- ARG XDEBUG_VERSION=2.9.8
15+ ARG XDEBUG_VERSION=3.0.1
1616RUN set -eux; \
1717 apk add --no-cache --virtual .build-deps $PHPIZE_DEPS; \
1818 pecl install xdebug-$XDEBUG_VERSION; \
@@ -39,12 +39,11 @@ services:
3939 environment :
4040 # See https://docs.docker.com/docker-for-mac/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host
4141 # See https://github.com/docker/for-linux/issues/264
42- # The `remote_host` below may optionally be replaced with `remote_connect_back`
42+ # The `client_host` below may optionally be replaced with `discover_client_host=yes`
43+ # Add `start_with_request=yes` to start debug session on each request
4344 XDEBUG_CONFIG : >-
44- remote_enable=1
45- remote_host=host.docker.internal
46- remote_port=9001
47- idekey=PHPSTORM
45+ client_host=host.docker.internal
46+ XDEBUG_MODE : debug
4847 # This should correspond to the server declared in PHPStorm `Preferences | Languages & Frameworks | PHP | Servers`
4948 # Then PHPStorm will use the corresponding path mappings
5049 PHP_IDE_CONFIG : serverName=symfony
@@ -61,4 +60,4 @@ Inspect the installation with the following command. The requested Xdebug versio
6160 $ docker-compose exec php php --version
6261
6362 PHP ...
64- with Xdebug v2.8.0 ...
63+ with Xdebug v3.0.1 ...
You can’t perform that action at this time.
0 commit comments