ubuntu PHP XDebug的示例分析

发布时间:2021-09-07 10:15:28 作者:小新
来源:亿速云 阅读:146

这篇文章主要介绍ubuntu PHP XDebug的示例分析,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

1、https://github.com/xdebug/xdebug 根据步骤顺序执行
     a) 错误一
     遇到错误 ./rebuild.sh: 3: ./rebuild.sh: phpize: not found
         vim ./rebuild.sh
         将 phpize 替换为全路径 /usr/local/php/v7.1.9/bin/phpize
         /usr/local/php/v7.1.9/bin/phpize && ./configure --enable-xdebug-dev && make clean && make -j 5 all && make install
     b) 错误二
         configure: error: Cannot find php-config. Please use --with-php-config=PATH
         添加 --with-php-config=/usr/local/php/v7.1.9/bin/php-config
         /usr/local/php/v7.1.9/bin/phpize && ./configure --enable-xdebug-dev --with-php-config=/usr/local/php/v7.1.9/bin/php-config && make clean && make -j 5 all && make install

      解决完错误重新执行 sudo ./rebuild.sh
      安装完成
2、修改php.ini
     [XDebug]
        xdebug.profiler_append = 0
        xdebug.profiler_enable = 1
        xdebug.profiler_enable_trigger = 0
        xdebug.remote_enable = 1
        xdebug.remote_mode = "req"
        xdebug.remote_handler = "dbgp"
        xdebug.remote_host = "127.0.0.1"
        xdebug.remote_port = 9001
        xdebug.idekey="php"
        xdebug.remote_autostart = no

     zend_extension = /usr/local/php/v7.1.9/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so
xdebug官网:https://xdebug.org/
windows dll 下载地址:https://xdebug.org/download.php

以上是“ubuntu PHP XDebug的示例分析”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注亿速云行业资讯频道!

推荐阅读:
  1. ubuntu 安装phpstorm+xdebug 动态调试环境
  2. Ubuntu使用apt-get安装php的方法

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

ubuntu php xdebug

上一篇:php如何使用多进程

下一篇:如何优化PHP代码

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》