当前位置:网站首页>vscode debugging and remote
vscode debugging and remote
2022-07-30 03:46:00 【CAir2】
参考博客:VScode 调试进程(附加,远程)
附加进程
vscode打开项目,修改launch.json
#requets从原来的launch修改为attach
"request": "attach",
#Specify a process or select a process,Process can be specified hereid
"processId":"${command:pickProcess}",
#Specifies the location of the debugger
"program": "${workspaceFolder}/build/hellow",
#Or set the source code location
#"sourceFileMap"
调试子进程
vscodeDebugging child processes directly is not currently supported,Debugging can only be done by attaching a process.
远程链接
参考博客:
https://blog.csdn.net/Supreme_Julyan/article/details/121137559
https://blog.csdn.net/qq_45280030/article/details/124072929
安装远程插件:
安装完成之后重启VScode,然后选中SSH Targets,并且‘+’
添加远程连接
A dialog box appears,Enter the remote device insideip,之后选择config就行.
At this point, there will be our remote items in the remote list,At this point we set the remote alias and login user.
After the configuration is complete, you can connect to the remote.The user name and password need to be confirmed multiple times during the linking process.
The way the server generates the secret key(可选)
#!bin/bash
if [ $# -lt 1 ]; then
echo "usage: $0 [email protected]"
exit
fi
ssh-keygen
ssh-copy-id $1
cp ~/.ssh/id_rsa ./
echo "/***************************************************/\nid_rsa is in ./ now,copy it to C:\Users\testwin10/.ssh/\n/***************************************************/"
保存shell脚本,eg名称为:build_key.sh
,然后运行脚本,At this point the current directory will be generatedid_rsa
文件,Just copy it to the client.
//sh buile_key.sh [email protected]
#sh buile_key.sh 192.168.34.187@root
错误:cppdbg 不受支持
解决方案:安装C/C++插件,重启vscode即可解决
错误:vscodeAppears when connecting remotelyinstall警示
解决方案:just ignore,打开一个新的bash即可
边栏推荐
- vscode 调试和远程
- spicy(一)基本定义
- 淘宝/天猫获得淘宝店铺详情 API
- 小程序毕设作品之微信积分商城小程序毕业设计成品(3)后台功能
- 星光不问赶路人!武汉校区小姐姐三个月成功转行软件测试,收获9k+13薪!
- LeetCode 114. 二叉树展开为链表(一题三吃)
- 淘宝H5接口获取app数据6.0格式
- 运行时间监控:如何确保网络设备运行时间
- SDL播放器实战
- Small application project works WeChat integral mall small program of graduation design (4) the opening report of finished product
猜你喜欢
AI智能安防视频平台EasyCVR如何配置音视频同时传输?
Resampling a uniformly sampled signal
OpenFeign实现降级
Mini Program Graduation Works WeChat Points Mall Mini Program Graduation Design Finished Product (2) Mini Program Function
使命、愿景、价值观到底有什么区别
进程优先级 nice
Gateway 路由网关
智能答题功能,CRMEB知识付费系统必须有!
Mini Program Graduation Works WeChat Second-hand Trading Mini Program Graduation Design Finished Works (6) Question Opening Reply PPT
ospf 综合实验(重发布,特殊区域)
随机推荐
【SQL】按某个关联列用一张表的数据更新另一张表
小程序毕设作品之微信积分商城小程序毕业设计成品(4)开题报告
Microservice CAP Principles
小程序毕设作品之微信积分商城小程序毕业设计成品(6)开题答辩PPT
Nacos 安装与部署
TCP congestion control technology and acceleration principle of BBR
Resampling a uniformly sampled signal
北京bgp机房和普通机房的区别
Mini Program Graduation Works WeChat Points Mall Mini Program Graduation Design Finished Products (3) Background Functions
un7.29: How to install and configure redis in Linux-centos?
阿里巴巴按关键字搜索新品数据 API
星光不问赶路人!武汉校区小姐姐三个月成功转行软件测试,收获9k+13薪!
Flutter records and learns different animations (1)
进程优先级 nice
spicy(二)unit hooks
Mini Program Graduation Works WeChat Second-hand Trading Mini Program Graduation Design Finished Works (7) Interim Inspection Report
Tcp编程
spicy (1) basic definition
护网行动基本介绍
Uptime Monitoring: How to Ensure Network Device Uptime