1、https://github.com/xdebug/xdebug 根据步骤顺序执行a) 错误一遇到错误 ./rebuild.sh: 3: ./rebuild.sh: phpize: not foundvim ./rebuild.sh将 phpize 替换为全路径 /usr/local/php/v7.1.9/bin/phpize/usr/local/...

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


基础教程推荐
猜你喜欢
- PHP使用SMTP邮件服务器发送邮件示例 2022-11-16
- TP5(thinkPHP5框架)基于bootstrap实现的单图上传插件用法示例 2023-01-19
- php中使用array_filter()函数过滤数组实例讲解 2023-05-19
- PHP数据加密方式梳理介绍 2023-07-03
- laravel model模型定义实现开启自动管理时间created_at,updated_at 2023-03-02
- PHP删除数组中指定值的元素常用方法实例分析【4种方法】 2022-11-12
- PHP实现创建一个RPC服务操作示例 2023-04-01
- thinkPHP3.2.2框架行为扩展及demo示例 2022-11-07
- PHP实现生成数据字典功能示例 2022-10-18
- TP5 连接多个数据库及使用方法 2023-08-30