当前位置:网站首页>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
边栏推荐
- Qingdao agile tour, coming!
- Interesting prime number problem hdu5750
- Solution of how to log in with mobile phone verification code in wireless network
- varnish入门
- Interpretation of common SQL statements
- Three of three JS (webgl) simple sorting of rotation attribute function, and a simple case of rotating around the axis based on this
- SQL Server检索SQL和用户信息的需求
- 使用 Kears 实现ResNet-34 CNN
- 4 most common automated test challenges and Countermeasures
- FileReader API file operation
猜你喜欢

Traversal of tree

Blender programmed terrain production

好的测试数据管理,到底要怎么做?

After NPM was upgraded, there was a lot of panic

4 个最常见的自动化测试挑战及应对措施

Uncle wolf is looking for a translator -- Plato -- ongoing translation

Publish your own wheel - pypi packaging upload practice

Laravel implements the Holy Grail model with template inheritance

Source code analysis of how to use jump table in redis

Using PHP post temporary file mechanism to upload arbitrary files
随机推荐
无线网怎么用手机验证码登录解决方案
Traversal of tree
Laravel database
JS time format conversion
How to add beautiful code blocks in word | a very complete method to sort out and compare
Laravel routing settings
Interesting prime number problem hdu5750
Excel 2016 打开文件第一次打不开,有时空白,有时很慢要打开第二次才行
青岛敏捷之旅,来了!
(十一)vscode代码格式化配置
Basic knowledge of vegetable chicken database
MFC implementation resources are implemented separately by DLL
Laravel [view]
Swing display time (click once to display once)
App Store年交易额100万美元只缴15%佣金,中小开发者心里很矛盾
2021-10-08
Devops life cycle, all you want to know is here!
云计算与云原生 — OpenShift 的架构设计
JS array common methods
Cloud computing and cloud native architecture design of openshift