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를 사용하는 방법 - Nuggets
Windows 10에서 PHPStorm을 사용하여 Docker +deockerfile+Swoole + XDebug + Hyperf 개발/디버그 - Programmer Sought
핫 재시작: