From 967eb004559dbfac629e5593406df7645e848929 Mon Sep 17 00:00:00 2001 From: leocavalcante Date: Fri, 22 Dec 2023 22:40:33 -0300 Subject: [PATCH] feat: Xdebug --- rootfs/etc/php/php.ini | 10 +++++++--- src/docker.sh | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/rootfs/etc/php/php.ini b/rootfs/etc/php/php.ini index 7d798a5..14d2169 100644 --- a/rootfs/etc/php/php.ini +++ b/rootfs/etc/php/php.ini @@ -1,5 +1,9 @@ -[swoole] -swoole.use_shortname = Off +zend_extension = xdebug [xdebug] -;zend_extension = xdebug +xdebug.mode = develop,debug +xdebug.log = /tmp/xdebug.log +xdebug.start_with_request = Yes + +[swoole] +swoole.use_shortname = Off diff --git a/src/docker.sh b/src/docker.sh index ee8e9c4..8081529 100644 --- a/src/docker.sh +++ b/src/docker.sh @@ -29,6 +29,6 @@ run() { -v /var/run/docker.sock:/var/run/docker.sock \ -v ~/.gitconfig:/root/.gitconfig \ -v "$(pwd)":/opt -w /opt \ - --entrypoint sh \ + --net host --entrypoint sh \ ${args[@]} $1 "$PHPCTL_IMAGE" -c "${*:2}" }