Skip to content

Commit 0683e9e

Browse files
authored
update xdebug congig closes #267
1 parent 554dc22 commit 0683e9e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/start.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@ if [[ "$ENABLE_XDEBUG" == "1" ]] ; then
174174
echo "Xdebug already enabled... skipping"
175175
else
176176
echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > $XdebugFile # Note, single arrow to overwrite file.
177-
echo "xdebug.remote_enable=1 " >> $XdebugFile
178-
echo "xdebug.remote_host=host.docker.internal" >> $XdebugFile
177+
echo "xdebug.start_with_request=yes" >> $XdebugFile
178+
echo "xdebug.client_host=host.docker.internal" >> $XdebugFile
179+
echo "xdebug.mode=debug" >> $XdebugFile
179180
echo "xdebug.remote_log=/tmp/xdebug.log" >> $XdebugFile
180181
echo "xdebug.remote_autostart=false " >> $XdebugFile # I use the xdebug chrome extension instead of using autostart
181182
# NOTE: xdebug.remote_host is not needed here if you set an environment variable in docker-compose like so `- XDEBUG_CONFIG=remote_host=192.168.111.27`.

0 commit comments

Comments
 (0)