php7.4如何安装xdebug扩展
#wget https://xdebug.org/files/xdebug-3.2.2.tgz
#tar -xvzf xdebug-3.2.2.tgz
#cd xdebug-3.2.2
#/usr/local/php/bin/phpize
#./configure -enable-xdebug --with-php-config=/usr/local/php/bin/php-config
# make && make install
#vi /usr/local/php/etc/php.ini
添加
zend_extension = /usr/local/php/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so [Xdebug] xdebug.remote_enable = 1 xdebug.remote_host = 192.168.1.32 xdebug.remote_port = 9005 xdebug.remote_handler=DBGP
#/etc/init.d/php-fpm restart
#php -m | grep xdebug