Skip to content

Commit

Permalink
fixing xdebug params
Browse files Browse the repository at this point in the history
  • Loading branch information
dersonsena committed Dec 28, 2021
1 parent e8eb548 commit 3b976fd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions php/7.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ ENV PHP_POST_MAX_SIZE=50M
ENV PHP_UPLOAD_MAX_FILESIZE=50M

# XDebug Env Variables
ENV XDEBUG_MODE=develop,debug
ENV XDEBUG_MODE=debug
ENV XDEBUG_START_WITH_REQUEST=yes
ENV XDEBUG_DISCOVER_CLIENT_HOST=0
ENV XDEBUG_DISCOVER_CLIENT_HOST=1
ENV XDEBUG_CLIENT_HOST=host.docker.internal
ENV XDEBUG_CLIENT_PORT=9003
ENV XDEBUG_MAX_NESTING_LEVEL=1500
ENV XDEBUG_IDE_KEY=PHPSTORM
ENV XDEBUG_LOG=/tmp/xdebug.log
ENV PHP_IDE_CONFIG="serverName=_"

# Versioning Env Vars
ENV XDEBUG_VERSION=3.0.2
Expand Down
2 changes: 1 addition & 1 deletion php/7.4/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sed -i "s:upload_max_filesize.*:upload_max_filesize = $PHP_UPLOAD_MAX_FILESIZE:g
echo "xdebug.mode=$XDEBUG_MODE" >> $xdebugIniFile
echo "xdebug.cli_color=1" >> $xdebugIniFile
echo "xdebug.start_with_request = $XDEBUG_START_WITH_REQUEST" >> $xdebugIniFile
echo "xdebug.xdebug.discover_client_host = $XDEBUG_DISCOVER_CLIENT_HOST" >> $xdebugIniFile
echo "xdebug.discover_client_host = $XDEBUG_DISCOVER_CLIENT_HOST" >> $xdebugIniFile
echo "xdebug.client_host = $XDEBUG_CLIENT_HOST" >> $xdebugIniFile
echo "xdebug.client_port = $XDEBUG_CLIENT_PORT" >> $xdebugIniFile
echo "xdebug.idekey = $XDEBUG_IDE_KEY" >> $xdebugIniFile
Expand Down
5 changes: 3 additions & 2 deletions php/8.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ ENV PHP_POST_MAX_SIZE=50M
ENV PHP_UPLOAD_MAX_FILESIZE=50M

# XDebug Env Variables
ENV XDEBUG_MODE=develop,debug
ENV XDEBUG_MODE=debug
ENV XDEBUG_START_WITH_REQUEST=yes
ENV XDEBUG_DISCOVER_CLIENT_HOST=0
ENV XDEBUG_DISCOVER_CLIENT_HOST=1
ENV XDEBUG_CLIENT_HOST=host.docker.internal
ENV XDEBUG_CLIENT_PORT=9003
ENV XDEBUG_MAX_NESTING_LEVEL=1500
ENV XDEBUG_IDE_KEY=PHPSTORM
ENV XDEBUG_LOG=/tmp/xdebug.log
ENV PHP_IDE_CONFIG="serverName=_"

# Versioning Env Vars
ENV XDEBUG_VERSION=3.0.2
Expand Down
2 changes: 1 addition & 1 deletion php/8.0/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sed -i "s:upload_max_filesize.*:upload_max_filesize = $PHP_UPLOAD_MAX_FILESIZE:g
echo "xdebug.mode=$XDEBUG_MODE" >> $xdebugIniFile
echo "xdebug.cli_color=1" >> $xdebugIniFile
echo "xdebug.start_with_request = $XDEBUG_START_WITH_REQUEST" >> $xdebugIniFile
echo "xdebug.xdebug.discover_client_host = $XDEBUG_DISCOVER_CLIENT_HOST" >> $xdebugIniFile
echo "xdebug.discover_client_host = $XDEBUG_DISCOVER_CLIENT_HOST" >> $xdebugIniFile
echo "xdebug.client_host = $XDEBUG_CLIENT_HOST" >> $xdebugIniFile
echo "xdebug.client_port = $XDEBUG_CLIENT_PORT" >> $xdebugIniFile
echo "xdebug.idekey = $XDEBUG_IDE_KEY" >> $xdebugIniFile
Expand Down

0 comments on commit 3b976fd

Please sign in to comment.