当前位置:网站首页>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
边栏推荐
- The introduction of lean management needs to achieve these nine points in advance
- Devops life cycle, all you want to know is here!
- Study notes: unity customsrp-13-colorgrading
- 改进DevSecOps框架的 5 大关键技术
- 【openh264】cmake: msopenh264-static
- Where, on when MySQL external connection is used
- Solve the problem of JS calculation accuracy
- Graphics. Fromimage reports an error "graphics object cannot be created from an image that has an indexed pixel..."
- MySQL series - install MySQL 5.6.27 on Linux and solve common problems
- 项目经理值得一试的思维方式:项目成功方程式
猜你喜欢
随机推荐
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)
Cloud computing and cloud native architecture design of openshift
Laravel routing job
2021-11-08
2021-10-12
云计算与云原生 — OpenShift 的架构设计
egg的static的前缀是可以修改惹,靴靴
egg测试的知识大全--mock、superTest、coffee
Swing display time (click once to display once)
Laravel database
Top 25 Devops tools in 2021 (Part 2)
Domain driven model DDD (III) -- using saga to manage transactions
Low code and no code considerations
phphphphphphphp
Minimum spanning tree -- unblocked project hdu1863
好的测试数据管理,到底要怎么做?
Basic knowledge of redis
Study notes: unity customsrp-10-point and spot shadows
FileReader API file operation
How to realize adaptive layout



![Laravel [view]](/img/39/71db98d8832d9419bcc1097594d1b6.png)





