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

添加

1
2
3
4
5
6
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

posted @   tochenwei  阅读(259)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 在鹅厂做java开发是什么体验
· 百万级群聊的设计实践
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
· 永远不要相信用户的输入:从 SQL 注入攻防看输入验证的重要性
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
点击右上角即可分享
微信分享提示