当前位置:网站首页>Remote editing and debugging with vscode
Remote editing and debugging with vscode
2022-07-23 13:35:00 【lightninghenry】
In embedded development , It is often necessary to maintain the device code at the edge , Compile etc. , Traditional terminal instructions do not vscode To use , So how to use vscode Realize remote compilation and debugging ? Please see below
Through this article, we can realize :
- Use vscode Edit and debug the project of remote equipment
- Remote devices do not need to be installed vscode
As for why to use vscode, I won't say much more , It really works , Who knows ^^
preparation :
- You can use the command window locally ssh To remote device
- Installed locally vscode, I'm using 1.69 edition
- stay vscode Installation on Remote Development plug-in unit
Usage flow :
step 1:

According to the number corresponding to the red circle in the above figure , In turn, click , Open the local config file
step 2:
Edit the opened in the previous step config file , The code is 3 That's ok :
Host devicename
HostName 192.168.100.9
User myname- first line :Host Followed by the name of the remote device , Name at will
- The second line :HostName Add the network of remote devices behind IP Number
- The third line :User Add the account name after you log in to the remote device
If you need to connect multiple remote devices , Copy the above code again :
Host device1
HostName 192.168.100.9
User myname1
Host device2
HostName 192.168.100.10
User myname2
Host device3
HostName 192.168.100.11
User myname3A friendly reminder : Remember to save the modified code
step 3:
step 2 When done correctly , You can be there vscode On the left, you can see the remote device name

Click the red box in the figure , Open the remote device , A new one will pop up vscode

Select the remote system type , It can be seen that vscode Yes linux、windows、macOS All supported
step 4:
Click the corresponding system , Enter the login password of the remote device , Then you can enter the remote device home The directory
In the new pop-up vscode Open the folder you want to edit in the interface :

Next, it is used locally vscode It's the same ^^
This article also applies to remote office computers , The server etc.
边栏推荐
- 使用fastjson解析以及赋予json数据时,json字段顺序不一致问题
- 射击 第 1-01 课:入门
- Day 10 notes
- Beifu PLC and C transmit int type variables through ads communication
- 太空射击 Part 1: 玩家精灵和控制
- Successful joint commissioning of Vientiane Aoke and CoDeSys Technology
- 高性能JVM的参数
- 【MUDUO】Poller抽象类
- Machine learning, Wu Enda, logical regression
- GOM引擎版本为什么玩家会自动掉线或闪退?
猜你喜欢

Space shooting Part 2-3: dealing with the collision between bullets and the enemy

JVM detailed parsing

Outlook tutorial, how to switch calendar views and create meetings in outlook?

Opencv image processing (Part 2): edge detection + template matching + Hough transform

【日常训练】814. 二叉树剪枝

Talk about study and work -- Qian Xuesen

倍福PLC和C#通过ADS通信传输int类型变量

第十一天笔记

Beifu PLC and C transmit string type through ads communication

“算力猛兽”浪潮NF5468A5 GPU服务器开放试用免费申请
随机推荐
ES6——周考题
Opencv image processing (Part 1): geometric transformation + morphological operation
机器学习,吴恩达逻辑回归
成功 万象奥科与CODESYS技术联合调测
第七天笔记
[jzof] 10 Fibonacci series
Beifu PLC and C transmit bool array variables through ads communication
Notes on the seventh day
Is it safe to open an account with Guosen Securities software? Will the information be leaked?
Metaapp development interview questions
Successful joint commissioning of Vientiane Aoke and CoDeSys Technology
In depth interpretation of EVM's ecological Empire
Talk about study and work -- Qian Xuesen
Special topic of MIMO Radar (0) - General Chapter
Point target simulation of SAR imaging (II) -- matlab simulation
Space shooting part 1: player spirit and control
倍福PLC和C#通过ADS通信传输bool类型变量
PHP connecting to SQL Server
分类模型的评估
Smart city infrastructure management based on bim+3dgis