git clone [email protected]:swoole/sdebug.git -b sdebug_2_9 --depth=1
cd sdebug/
apk add php7-dev # 安装phpize
phpize
apk add gcc libc-dev make
./configure
make clean
make
make install
find / -name php.ini
vi /etc/php7/php.ini
###
zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_host=localhost
xdebug.remote_port=8000
xdebug.idekey="xdebug"
###
php -m
php watch
参考:
Swoole 如何使用 Xdebug 进行单步调试 - 掘金
Windows 10 下使用 PHPStorm 开发/调试 Docker +deockerfile+Swoole + XDebug + Hyperf - 简书
热重启:
hyperf-watch: hyperf的热更新,基于go语言编写,开箱即用,由于github太慢,故此备份了一份,供大家使用。 - Gitee.com