Skip to content

Commit 1801dc8

Browse files
author
ironex
committed
Fix Xdebug command for Linux
1 parent b996f78 commit 1801dc8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bin/xdebug

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
# trace
2828
# - 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.
2929

30-
sed -i '' "s/xdebug.mode=.*/xdebug.mode=$1/g" docker/php-fpm/php.ini
30+
if [ $(uname) == "Darwin" ]
31+
then
32+
sed -i '' "s/xdebug.mode=.*/xdebug.mode=$1/g" docker/php-fpm/php.ini
33+
else
34+
sed -i "s/xdebug.mode=.*/xdebug.mode=$1/g" docker/php-fpm/php.ini
35+
fi
3136

3237
docker-compose restart php-fpm

0 commit comments

Comments
 (0)