NetBeans配置Xdebug 远程调试PHP

来源:互联网 发布:c语言开发环境 编辑:程序博客网 时间:2024/05/18 10:03
##################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

    代表编译安装成功

7.使用

    参照大神的博客:blog.csdn.net/21aspnet/article/details/47756651

######################参考链接###############################

致敬大神:

blog.csdn.net/21aspnet/article/details/47756651