sdebug安装
###地址
这个地址下载的是 sdebug_2_7
git clone https://github.com/mabu233/sdebug.git
sdebug_2_7 仅支持php版本为 Need a PHP version >= 7.0.0 and < 7.4.0
https://github.com/swoole/sdebug
这个地址sdebug_2_9 支持>= php7.4
###扩展安装
cd sdebug
[root@localhost sdebug]# /usr/local/php740/bin/phpize
Configuring for:
PHP Api Version: 20190902
Zend Module Api No: 20190902
Zend Extension Api No: 320190902
#命令
./configure --with-php-config=/usr/local/php740/bin/php-config
make clean && make && make install
/usr/local/php740/bin/php -m
/usr/local/php740/bin/php --ri swoole
###配置
zend_extension=xdebug.so
xdebug.default_enable = on
xdebug.remote_connect_back = 1
xdebug.remote_port = 9007
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_handler="dbgp"
xdebug.remote_mode="req"
xdebug.remote_host = 192.168.33.1
xdebug.idekey = "PHPSTORM"
xdebug.remote_log="/tmp/xdebug72.log"
本作品采用《CC 协议》,转载必须注明作者和本文链接
推荐文章: