当前位置:网站首页>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即可
边栏推荐
- Solve the problem of compiling and installing gdb-10.1 unistd.h:663:3: error: #error “Please include config.h first.”
- Is the snowflake the same question?
- Dataset之MNIST:MNIST(手写数字图片识别+ubyte.gz文件)数据集简介、下载、使用方法(包括数据增强)之详细攻略
- MySQL之数据查询(分类汇总与排序)
- LoadBalancer load balancing
- Nacos Configuration Center
- 传输层详解
- 微服务进阶 Cloud Alibaba
- Mini Program Graduation Works WeChat Points Mall Mini Program Graduation Design Finished Products (6) Question Opening and Defense PPT
- Hystrix 服务熔断
猜你喜欢

Is the snowflake the same question?

小程序毕设作品之微信积分商城小程序毕业设计成品(3)后台功能

Mini Program Graduation Works WeChat Points Mall Mini Program Graduation Design Finished Work (7) Interim Inspection Report

day10--install mysql on linux

进程优先级 nice

Open address method hash implementation - linear detection method
Send it to your friends and let TA treat you to fried chicken!

EasyCVR启动时报错“no such file or directory”,该如何解决?

redis的学习_基础部分

Nacos service registration and discovery
随机推荐
淘宝/天猫获得淘宝店铺详情 API
Flutter records and learns different animations (1)
进程优先级 nice
小程序毕设作品之微信二手交易小程序毕业设计成品(5)任务书
【转】Swift 中的面向协议编程:引言
phpoffice 编辑excel文档
CMake的安装和测试
Stimulsoft ReportsJS and DashboardsJS. 2022.3.3
LoadBalancer load balancing
小程序毕设作品之微信积分商城小程序毕业设计成品(8)毕业设计论文模板
flutter 记录学习不一样的动画(一)
OpenFeign realize load balance
OpenFeign实现负载均衡
(六)《数电》——二极管与CMOS门电路(入门)
Nacos服务注册与发现
SQL 入门之第一讲——MySQL 8.0.29安装教程(windows 64位)
Nacos实现高可用
Microservice CAP Principles
北京bgp机房和普通机房的区别
Ansible introduction (detailed) features + advantages + design concept + application field + system architecture + working principle + task execution process