Skip to content

Commit

Permalink
Fix Xdebug command for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ironex committed Aug 3, 2021
1 parent b996f78 commit 1801dc8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/xdebug
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
# trace
# - Enables the Function Trace feature, which allows you record every function call, including arguments, variable assignment, and return value that is made during a request to a file.

sed -i '' "s/xdebug.mode=.*/xdebug.mode=$1/g" docker/php-fpm/php.ini
if [ $(uname) == "Darwin" ]
then
sed -i '' "s/xdebug.mode=.*/xdebug.mode=$1/g" docker/php-fpm/php.ini
else
sed -i "s/xdebug.mode=.*/xdebug.mode=$1/g" docker/php-fpm/php.ini
fi

docker-compose restart php-fpm

0 comments on commit 1801dc8

Please sign in to comment.