----------------------------------------------------

下面的链接下载对应版本的xdebug.

https://xdebug.org/download/historical

源码安装:https://xdebug.org/docs/install#linux

Installation From Source

Obtain

You can download the source of the latest stable release 3.0.2.

Alternatively you can obtain Xdebug from GIT:

git clone git://github.com/xdebug/xdebug.git

This will checkout the latest development version which is currently 3.1.0-dev. This development branch might not always work as expected, and may have bugs.

You can also browse the source on GitHub at https://github.com/xdebug/xdebug.

Compile

There is a wizard available that provides you with the correct file to download, and which paths to use.

You compile Xdebug separately from the rest of PHP. You need access to the scripts phpize and php-config. If your system does not have phpize and php-config, you will need to install the PHP development headers.

Debian users can do that with:

apt-get install php-dev

And RedHat and Fedora users with:

yum install php-devel

It is important that the source version matches the installed version as there are slight, but important, differences between PHP versions. Once you have access to phpizeand php-config, take the following steps:

  1. Unpack the tarball:

    tar -xzf xdebug-3.0.2.tgz

    You should not unpack the tarball inside the PHP source code tree. Xdebug is compiled separately, all by itself, as stated above.

  2. cd xdebug-3.0.2

  3. phpize (这一步,用对应版本的phpize , 如:/opt/PHP-5.6/bin/phpize)

    If phpize is not in your path, please make sure that it is by expanding the PATHenvironment variable. Make sure you use the phpize that belongs to the PHP version that you want to use Xdebug with. See this FAQ entry if you're having some issues with finding which phpize to use.

  4. ./configure --enable-xdebug

  5. make

  6. make install

Configure PHP

  1. Add the following line to php.ini:

    zend_extension=/wherever/you/put/it/xdebug

  

1

2

3

4

5

6

7

8

9

10

11

12

zend_extension = /opt/PHP-5.6/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so

xdebug.remote_enable=1

xdebug.remote_autostart = 1 ;这个配置是比较重要的一个配置

xdebug.remote_port=9013

xdebug.remote_log="/xdebug-log"

xdebug.remote_host="192.168.123.41" ;远程调试的ip地址,即你自己的本机ip

  

来源:https://www.cnblogs.com/oxspirt/p/14246986.html

xdebug 远程调试相关推荐

  1. php xdebug远程调试配置(含cli模式)

    找了很久php的xdebug扩展远程调试教程,大都已经过时,现在记录下php配置xdebug远程调试的过程. 适用php版本: php 7 ~ 8 适用安装xdebug3 版本 目录 1. 安装xde ...

  2. NetBeans配置Xdebug 远程调试PHP

    很多PHP程序员使用echo,dump等比较原始的方法调试,这是非常落后的. 几年前本人写过一篇: NetBeans配置Xdebug 由于那篇文档还需要引用本人写的其他文档,感觉有些分散,所以这里重新 ...

  3. phpstorm+xdebug远程调试

    远端:centos7 phpstorm在windows上. centos7上同上一篇文章, [xdebug] zend_extension="xdebug.so" xdebug.r ...

  4. VSCode XDebug 远程调试虚拟机CentOS7上PHP项目

    声明 以下[参考]链接,如有侵权,请联系删除,在此先感谢在网络上无私奉献的人们~ 如有错误,请联系更正 文章目录 声明 背景 本机配置 虚拟机配置 1. 设置代码文件共享 2. 修改xdebug配置 ...

  5. php linux 调试工具,内网Visual Studio Code通过XDebug远程调试linux服务器PHP脚本

    开发环境是这样:一台位于内网环境下的Windows机器使用VSCode作为IDE编写 { "version": "0.2.0", "configura ...

  6. php项目使用xdebug远程调试

    0. 目的.原理和调用流程 访问测试环境的页面,在本地开发机打断点调试.相当流弊的功能,方便代码排查原因. 原理: 运行xdebug需要客户端IDE(phpstorm).远程服务器配合,首先是客户端配 ...

  7. 开发机多用户 xdebug 远程调试 PhpStorm

    在公司都用的远程开发机开发,每次有错误调试就得dd(xxx)然后保存真是,让我在本地开发用惯xdebug的情何以堪,所以有了下文. 1.安装配置xdebug 直接使用pecl安装即可 # pecl i ...

  8. 在主机中通过xdebug远程调试Vagrant虚拟机中drush脚本的方法

    改方法是调试drush所执行的php代码的方法,同样适用于普通的cli方式运行的php程序的调试. 1.首先需要调整cli方式的xdebug.ini配置: sudo vi /etc/php5/cli/ ...

  9. 【转】PHP远程调试之XDEBUG

    开发的时候我都是使用XDebug在本地调试,但是最近加入一些项目中去,环境太复杂了,要在本地搭建一个开发环境真的太麻烦了,那么我们怎么使用xdebug来远程调试呢? 我这里使用虚拟机搭建了一个模拟环境 ...

最新文章

  1. php面向对象程序设计,PHP面向对象程序设计类的定义与用法简单示例
  2. Android自定义绘制 绘制基础
  3. rm 空间不释放_面试官跟我说rm删除文件之后,空间就被释放了吗?我该怎么答...
  4. 【效率】推荐一款Markdown神器 ! ! !
  5. Android App列表之游标ListView(索引ListView)
  6. Python基础【day03】:字典(一)
  7. 下载Office安装包,提示找不到OfficeLR.cab文件。
  8. Android 2048游戏开发
  9. 【CAD】DWF文件格式详细说明,清晰易懂
  10. VB脚本:快速入门教程
  11. D-S证据理论超简单理解
  12. mx350显卡天梯图_显卡天梯图2020新排行榜
  13. JavaScript 小白手册
  14. C语言xio习笔记1递归函数实例
  15. sed是linux命令吗,Linux12_ sed命令详解
  16. 机器学习数据集----训练集、测试集以及验证集
  17. js实现正则去除字符串空格
  18. 【工大SCIR论文解读】WWW20 关键词生成提升电商会话推荐
  19. FPV入坑前传(20211227)(未完)
  20. Spring整合Mybatis之DAO层、Service层开发

热门文章

  1. C++基础-内存管理
  2. 09_EGIT插件的安装,Eclipse中克隆(clone),commit,push,pull操作演示
  3. 类型转换,类与类之间的转换,继承关系,继承与静态变量,子类父类重名,多继承,虚基类
  4. 利用存储函数,查询某个员工的年薪
  5. Scikit-learn数据预处理分类变量编码之标签二值化
  6. 疯狂android源码中文乱码无gbk,我的Android进阶之旅------Android使用cmd窗口进行adb logcat时出现中文乱码问题的解决办法...
  7. caffe使用过程中遇到的问题和解决办法
  8. C++之链表中头指针、头节点、首元结点的
  9. deepin-安装问题:unable to find a medium containing a live file
  10. bzoj3122 [SDOI2013]随机数生成器