当前位置:网站首页>vscode通过remotessh结合xdebug远程调试php解决方案
vscode通过remotessh结合xdebug远程调试php解决方案
2022-07-29 05:30:00 【su27_0101】
安装 remotessh
配置远程服务器连接秘钥进行登录
Host ubuntu
HostName 192.168.0.1
User root
Port 22
IdentityFile "C:\Users\xxx"
安装 phpdebug
在当前调试项目根目录建立
.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9003, // 必须与远程服务器php.ini xdebug.remote_port=9003 设置一致
},
]
}
远程服务器安装xdebug php 拓展
官方导引 https://xdebug.org/docs/install
如:
Ubuntu (18.04 LTS/Bionic, 20.04 LTS/Focal):
sudo apt-get install php-xdebug
修改php.ini配置激活xdebug远程调试
zend_extension = xdebug.so位置
[xdebug]
xdebug.remote_port=9003 // 与本地vscode .vscode/launch.json port保持一致
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.discover_client_host=On
max_execution_time = 3600

边栏推荐
- 非常实用的 Shell 和 shellcheck
- LDAP brief description and unified authentication description
- MySQL 事物四种隔离级别分析
- Analysis of four isolation levels of MySQL things
- Embedding理解+代码
- 失效的访问控制
- Hongke share | let you have a comprehensive understanding of "can bus error" (III) -- can node status and error counter
- Callable 的使用
- Ansible(自动化软件)
- 王树尧老师运筹学课程笔记 10 线性规划与单纯形法(关于检测数与退化的讨论)
猜你喜欢

数据单位:位、字节、字、字长

联邦学习后门攻击总结(2019-2022)

Shallow reading of shared lock source code of abstractqueuedsynchronizer (AQS)

SDN topology discovery principle

阿里一面,给了几条SQL,问需要执行几次树搜索操作?

【冷冻电镜|论文阅读】emClarity:用于高分辨率冷冻电子断层扫描和子断层平均的软件

成长为架构师途中的一些思考

Hongke white paper | how to use TSN time sensitive network technology to build a digital factory in industry 4.0?

Analysis of four isolation levels of MySQL things

C language memory stack and heap usage
随机推荐
Hongke automation SoftPLC | Hongke kPa modk operation environment and construction steps (3) -- modk routine test
损失函数——交叉熵损失函数
有用网站
SDN拓扑发现原理
说一下 TCP/IP 协议?以及每层的作用?
Best example of amortized cost
SS command details
吴恩达老师机器学习课程笔记 05 Octave教程
Hongke automation SoftPLC | Hongke kPa modk operation environment and construction steps (2) -- modk operation environment construction
【笔记】The art of research(明白问题的重要性)
Why does 5g N2 interface control plane use SCTP protocol?
20个hacker神器
吴恩达老师机器学习课程笔记 04 多元线性回归
Hongke will share the EtherCAT demo for you and teach you how to quickly transition from other protocols to EtherCAT industrial bus
Navicat for Oracle Cannot create oci environment
vmstat 内存消耗查询
阿里一面,给了几条SQL,问需要执行几次树搜索操作?
王树尧老师运筹学课程笔记 02 高等数学基础
Phantom reference virtual reference code demonstration
Using STP spanning tree protocol to solve the problem of two-layer loop in network