Skip to content

Commit

Permalink
Merge pull request #722 from Automattic/GH-716
Browse files Browse the repository at this point in the history
fix(dev-env): enable Xdebug for all SAPIs
  • Loading branch information
sjinks authored May 8, 2024
2 parents 91a7dad + 25f2b08 commit 417bd58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dev-tools/setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

export XDEBUG_MODE=off

subdomain=0

# Check if the first argument starts with '--'
Expand Down
4 changes: 2 additions & 2 deletions php-fpm/rootfs/usr/local/bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

if [ "enable" = "$XDEBUG" ]; then
echo "Enabling XDebug"
phpenmod -s fpm xdebug
phpenmod xdebug
else
echo "Disabling XDebug"
phpdismod -s fpm xdebug
phpdismod xdebug
fi

if [ -n "${LANDO_INFO}" ] && [ 'null' != "$(echo "${LANDO_INFO}" | jq -r .mailhog)" ]; then
Expand Down

0 comments on commit 417bd58

Please sign in to comment.