当前位置:网站首页>Vscode remote debugging PHP solution through remotessh and Xdebug
Vscode remote debugging PHP solution through remotessh and Xdebug
2022-07-29 07:07:00 【su27_ 0101】
install remotessh
Configure the remote server connection secret key for login
Host ubuntu
HostName 192.168.0.1
User root
Port 22
IdentityFile "C:\Users\xxx"
install phpdebug
Create in the root directory of the current debugging project
.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9003, // It must be connected with the remote server php.ini xdebug.remote_port=9003 The settings are consistent
},
]
}
Remote server installation xdebug php expand
Official guidance https://xdebug.org/docs/install
Such as :
Ubuntu (18.04 LTS/Bionic, 20.04 LTS/Focal):
sudo apt-get install php-xdebug
modify php.ini Configuration activation xdebug Remote debugging
zend_extension = xdebug.so Location
[xdebug]
xdebug.remote_port=9003 // With the local vscode .vscode/launch.json port bring into correspondence with
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

边栏推荐
- win11VMware打开虚拟机就蓝屏重启以及启动不了的解决方案
- Junda technology | applicable to "riyueyuan" brand ups wechat cloud monitoring card
- 330. 按要求补齐数组
- 做开发4年13K,想转行自动化测试,薪资还能涨吗···
- Revolution of game assets
- Can MySQL export tables regularly?
- Teacher wangshuyao's notes on operations research 06 linear programming and simplex method (geometric significance)
- Basic knowledge of MySQL (high frequency interview questions)
- Record - step on the pit - real-time data warehouse development - doris/pg/flink
- Overview of database system
猜你喜欢

Idea cannot find a database solution

Leetcode-592: fraction addition and subtraction

猜数字//第一次使用生成随机数

Teacher wangshuyao's notes on operations research 04 fundamentals of linear algebra

游戏资产的革命

Ali gave several SQL messages and asked how many tree search operations need to be performed?

Teacher wangshuyao's operations research course notes 07 linear programming and simplex method (standard form, base, base solution, base feasible solution, feasible base)

最新百亿量化私募名单

ECCV 2022丨轻量级模型架ParC-Net 力压苹果MobileViT代码和论文下载

【charles日常问题】开启charles,使用不了钉钉
随机推荐
【charles日常问题】开启charles,使用不了钉钉
上采样之反卷积操作
MVFuseNet:Improving End-to-End Object Detection and Motion Forecasting through Multi-View Fusion of
[C language brush leetcode] 1054. Bar code with equal distance (m)
Connecting PHP 7.4 to Oracle configuration on Windows
mysql可以定时导出表格吗?
MVFuseNet:Improving End-to-End Object Detection and Motion Forecasting through Multi-View Fusion of
resize2fs: 超级块中的幻数有错(Bad magic number in super-block )
【flask入门系列】Flask-SQLAlchemy的安装与配置
Simulation volume leetcode [normal] 081. Search rotation sort array II
Teacher Wu Enda machine learning course notes 05 octave tutorial
Teacher wangshuyao's notes on operations research 04 fundamentals of linear algebra
线程同步—— 生产者与消费者、龟兔赛跑、双线程打印
要不要满足客户所有的需求
Unity探索地块通路设计分析 & 流程+代码具体实现
Image noise and matrix inversion
IO stream - file - properties
实现改变一段文字的部分颜色效果
Teacher Wu Enda's machine learning course notes 03 review of linear algebra
DM数据守护集群搭建