当前位置:网站首页>Use pagoda + Xdebug + vscode to debug code remotely
Use pagoda + Xdebug + vscode to debug code remotely
2022-04-23 05:24:00 【Internet Walker】
background
php Run the program on a remote server , Want to debug remote code locally .
vscode To configure
1、 Open project code remotely , Need to install remote development Make a remote connection , After connecting, enter the remote project code path to connect .
2、php Installation required for commissioning phpdebug plug-in unit
3、 In the project code launch.json Configure debugging information
{
// Use IntelliSense Learn about properties .
// Hover to see the description of an existing property .
// For more information , Please visit : https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 0,
"runtimeArgs": [
"-dxdebug.start_with_request=yes"
],
"env": {
"XDEBUG_MODE": "debug,develop",
"XDEBUG_CONFIG": "client_port=${port}"
}
},
{
"name": "Launch Built-in web server",
"type": "php",
"request": "launch",
"runtimeArgs": [
"-dxdebug.mode=debug",
"-dxdebug.start_with_request=yes",
"-S",
"localhost:0"
],
"program": "",
"cwd": "${workspaceRoot}",
"port": 9003,
"serverReadyAction": {
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
"uriFormat": "http://localhost:%s",
"action": "openExternally"
}
}
]
}
### Pagoda configuration
In the already installed php Install extensions on version xdebug, In the installation directory php Catalog modification php.ini
[XDebug]
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.client_host=localhost
xdebug.client_port=9003
You'd better be here vscode Set breakpoints for debugging .
版权声明
本文为[Internet Walker]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230523089347.html
边栏推荐
- Cross domain CORS relationship~
- Use of uniapp native plug-ins
- Five key technologies to improve the devsecops framework
- WTL self drawn control library (cqscheckcomboxbox)
- 看板快速启动指南
- 学习笔记:Unity CustomSRP-10-Point and Spot Shadows
- CORS and proxy (づ  ̄ 3  ̄) in egg ~ the process of stepping on the pit and filling the pit ~ tot~
- Devops life cycle, all you want to know is here!
- 云计算与云原生 — OpenShift 的架构设计
- Where, on when MySQL external connection is used
猜你喜欢
(十一)vscode代码格式化配置
CPT 104_ TTL 09
Source code analysis of how to use jump table in redis
云计算与云原生 — OpenShift 的架构设计
Excel 2016 打开文件第一次打不开,有时空白,有时很慢要打开第二次才行
The 2021 IT industry project management survey report was released!
Top 25 Devops tools in 2021 (Part 2)
Solution of how to log in with mobile phone verification code in wireless network
Cross domain CORS relationship~
Where, on when MySQL external connection is used
随机推荐
Use of uniapp native plug-ins
TSlint注释忽略错误和RESTful理解
CPT 104_ TTL 09
7-4 is it too fat (10 points) PTA
egg的static的前缀是可以修改惹,靴靴
varnish入门
学习笔记:Unity CustomSRP-10-Point and Spot Shadows
SQLyog的基本使用
Three of three JS (webgl) is simple to draw lines / arcs according to points (based on linegeometry / line2 / linematerial, draw two arc segments based on the center of the circle)
JS Array常见方法
Simple application of parallel search set (red alarm)
Basic knowledge of vegetable chicken database
Basic use of sqlyog
What role do tools play in digital transformation?
Traversal of tree
The prefix of static of egg can be modified, including boots
Devops life cycle, all you want to know is here!
使用 Kears 实现ResNet-34 CNN
Three 之 three.js (webgl)简单实现根据点绘制线/弧线(基于LineGeometry / Line2 / LineMaterial,绘制两点基于圆心的弧线段)
Good test data management, in the end how to do?