当前位置:网站首页>C#远程调试
C#远程调试
2022-07-31 02:43:00 【故里2130】
在我们日常生活中,经常遇到本机电脑可以运行程序,但是别的电脑无法运行程序,很多情况下,都是环境变量导致的。我们可以使用远程调试,只需要复制代码过去,而不用安装对应的vs软件,这样比较节约时间。本环境是虚拟机和主机处于一个局域网中,使用vs2022。
1.在远程的电脑上,下载vs2022远程工具
下载 Visual Studio Tools - 免费安装 Windows、Mac、Linux
2.在远程的电脑上,安装

3.在远程的电脑上,启动
点击确定
并且记录下远程电脑的IP地址和端口号,后面要使用
4.在本机电脑上,创建一个winform程序

把Debug文件复制到远程的电脑上, 并且运行

5.在本机电脑上,选择附加到进程
6. 输入远程的IP地址和端口号,点击查找,进行连接
此时找到运行的软件,点击附加按钮
7.然后回到远程电脑上,点击软件上面的按钮,此时本机就会有断点进入了

同时,远程的电脑也会显示连接
拓展
对于其他使用vs开发的程序,例如网站或者c++程序等等,都可以使用此方法来进行远程调试。
边栏推荐
- Classic linked list OJ strong training problem - fast and slow double pointer efficient solution
- Huawei od dice js
- 拒绝加班,程序员开发的效率工具集
- Verify the integer input
- 分布式与集群是什么 ? 区别是什么?
- 跨专业考研难度大?“上岸”成功率低?这份实用攻略请收下!
- YOLOV5 study notes (2) - environment installation + operation + training
- 关于 mysql8.0数据库中主键位id,使用replace插入id为0时,实际id插入后自增导致数据重复插入 的解决方法
- coldfusion8 background scheduled tasks take shell
- 共模电感的仿真应用来了,满满的干货送给大家
猜你喜欢
![LeetCode 1161 The largest element in the layer and the LeetCode road of [BFS binary tree] HERODING](/img/56/fcc8ee6f592abf0a374fc950a3362f.png)
LeetCode 1161 The largest element in the layer and the LeetCode road of [BFS binary tree] HERODING

The principle of complete replication of virtual machines (cloud computing)

How to do a startup CTO?

7. List of private messages

经典链表OJ强训题——快慢双指针高效解法

StringJoiner in detail

f.grid_sample

mmdetection trains a model related command

The simulation application of common mode inductance is here, full of dry goods for everyone

multiplayer-hlap 包有问题,无法升级的解决方案
随机推荐
Introduction and use of Drools WorkBench
【CV项目调试】CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT问题
软件积累 -- 截图软件ScreenToGif
The application of AI in the whole process of medical imaging equipment
Android's webview cache related knowledge collection
YOLOV5学习笔记(二)——环境安装+运行+训练
[1153] The boundary range of between in mysql
Word/Excel fixed table size, when filling in the content, the table does not change with the cell content
Draw Your Cards
Discourse Custom Header Links
4、敏感词过滤(前缀树)
自动化办公案例:如何自动生成期数据?
Manchester City confuses fans with smart scarf that detects emotions
开题报告之论文框架
mysql index
局域网电脑硬件信息收集工具
SQL注入 Less54(限制次数的SQL注入+union注入)
multiplayer-hlap 包有问题,无法升级的解决方案
工程(五)——小目标检测tph-yolov5
Project development software directory structure specification