##################xdebug扩展安装######################
0.php版本,php-7.1.5
1.下载https://github.com/xdebug/xdebug/tree/XDEBUG_2_5_5
2.解压 unzip XDEBUG_2_5_5.zip -d /your/path
3.编译
1)制作configure : $ /home/apple/svn/com/repository/trunk/php-7.1.5-mysql/bin/phpize
2)编译:$ ./configure --enable-xdebug --with-php-config=/home/apple/svn/com/repository/trunk/php-7.1.5-mysql/bin/php-config
4.修改配置文件
在php.ini文件末尾添加:zend_extension=xdebug.so,保存。
5.重启php-fpm
1) ps -ef | grep php-fpm
2) sudo kill pid
3) sudo ./php-fpm
6.查看phpinfo,
出现
xdebug
xdebug support enabled
Version 2.5.5
IDE Key apple
0.php版本,php-7.1.5
1.下载https://github.com/xdebug/xdebug/tree/XDEBUG_2_5_5
2.解压 unzip XDEBUG_2_5_5.zip -d /your/path
3.编译
1)制作configure : $ /home/apple/svn/com/repository/trunk/php-7.1.5-mysql/bin/phpize
2)编译:$ ./configure --enable-xdebug --with-php-config=/home/apple/svn/com/repository/trunk/php-7.1.5-mysql/bin/php-config
4.修改配置文件
在php.ini文件末尾添加:zend_extension=xdebug.so,保存。
5.重启php-fpm
1) ps -ef | grep php-fpm
2) sudo kill pid
3) sudo ./php-fpm
6.查看phpinfo,
出现
xdebug
xdebug support enabled
Version 2.5.5
IDE Key apple
代表编译安装成功
7.使用
参照大神的博客:blog.youkuaiyun.com/21aspnet/article/details/47756651
######################参考链接###############################
致敬大神:
blog.youkuaiyun.com/21aspnet/article/details/47756651