IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> PHP知识库 -> mac+phpstorm2020 + php7.4 +xdebug3 安装 -> 正文阅读

[PHP知识库]mac+phpstorm2020 + php7.4 +xdebug3 安装

xdebug 版本需要与php匹配,匹配地址 :https://xdebug.org/wizard.php

tips:不确定xdebug版本的,把phpinfo()的网页源代码全部复制到wizard.php页面的文本框中,点击Analyse my phpinfo() output 跳转到下载配置页面,按页面提示流程安装即可。

安装xdebug

1、点击匹配地址,把复制的phpinfo信息粘贴到文本框。

2、按照页面的安装流程安装xdebug。(是这个页面:https://xdebug.org/wizard,内容如下)

Download xdebug-3.1.3.tgz(https://xdebug.org/wizard.php 下载)
Install the pre-requisites for compiling PHP extensions.
On your Mac, we only support installations with 'homebrew', and brew install php && brew install autoconf should pull in the right packages.
Unpack the downloaded file with tar -xvzf xdebug-3.1.3.tgz
Run: cd xdebug-3.1.3
Run: phpize (See the FAQ if you don't have phpize).

As part of its output it should show:

Configuring for:
...
Zend Module Api No:      20190902
Zend Extension Api No:   320190902
If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step.

Run: ./configure
Run: make
Run: cp modules/xdebug.so /usr/local/lib/php/pecl/20190902
Create /usr/local/etc/php/7.4/conf.d/99-xdebug.ini and add the line:
zend_extension = xdebug
Restart PHP-FPM```

3、配置php.ini

[Xdebug]
zend_extension=xdebug.so// 自己的路径
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.client_host=127.0.0.1

;# 9003 is now the default (set this for old PhpStorm settings).
xdebug.client_port=9003```//xdebug3 默认端口

注意:xdebug3 配置已上面的配置为准
上面是安装完成,接下来就是配置phpstorm,我参考的两个网址:
1.https://cloud.tencent.com/developer/article/1468219
2.https://www.jianshu.com/p/3fe69df5d6de

  PHP知识库 最新文章
Laravel 下实现 Google 2fa 验证
UUCTF WP
DASCTF10月 web
XAMPP任意命令执行提升权限漏洞(CVE-2020-
[GYCTF2020]Easyphp
iwebsec靶场 代码执行关卡通关笔记
多个线程同步执行,多个线程依次执行,多个
php 没事记录下常用方法 (TP5.1)
php之jwt
2021-09-18
上一篇文章      下一篇文章      查看所有文章
加:2022-03-22 20:18:59  更:2022-03-22 20:19:36 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年5日历 -2024/5/18 23:09:14-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码