Skip to content

Commit 967eb00

Browse files
committed
feat: Xdebug
1 parent c72eae1 commit 967eb00

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

rootfs/etc/php/php.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
[swoole]
2-
swoole.use_shortname = Off
1+
zend_extension = xdebug
32

43
[xdebug]
5-
;zend_extension = xdebug
4+
xdebug.mode = develop,debug
5+
xdebug.log = /tmp/xdebug.log
6+
xdebug.start_with_request = Yes
7+
8+
[swoole]
9+
swoole.use_shortname = Off

src/docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ run() {
2929
-v /var/run/docker.sock:/var/run/docker.sock \
3030
-v ~/.gitconfig:/root/.gitconfig \
3131
-v "$(pwd)":/opt -w /opt \
32-
--entrypoint sh \
32+
--net host --entrypoint sh \
3333
${args[@]} $1 "$PHPCTL_IMAGE" -c "${*:2}"
3434
}

0 commit comments

Comments
 (0)