当前位置:网站首页>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++程序等等,都可以使用此方法来进行远程调试。
边栏推荐
- 10 权限介绍
- There is a problem with the multiplayer-hlap package and the solution cannot be upgraded
- Mathematical Ideas in AI
- 【shell基础】判断目录是否为空
- The whole process scheduling, MySQL and Sqoop
- 19. Support Vector Machines - Intuitive Understanding of Optimization Objectives and Large Spacing
- Validate XML documents
- 19.支持向量机-优化目标和大间距直观理解
- How to build a private yum source
- 字体压缩神器font-spider的使用
猜你喜欢
Problems that need to be solved by the tcp framework
STP选举(步骤+案列)详解
STM32CUBEMX develops GD32F303 (11) ---- ADC scans multiple channels in DMA mode
基于opencv实现人脸检测
The effective square of the test (one question of the day 7/29)
php 网站的多语言设置(IP地址区分国内国外)
mmdetection trains a model related command
Inter-vlan routing + static routing + NAT (PAT + static NAT) comprehensive experiment
10、Redis实现点赞(Set)和获取总点赞数
关于 mysql8.0数据库中主键位id,使用replace插入id为0时,实际id插入后自增导致数据重复插入 的解决方法
随机推荐
Linux下redis7的安装,启动与停止
10、Redis实现点赞(Set)和获取总点赞数
STM32CUBEMX开发GD32F303(11)----ADC在DMA模式下扫描多个通道
Inter-vlan routing + static routing + NAT (PAT + static NAT) comprehensive experiment
CentOS7下mysql5.7.37的卸载【完美方案】
ShardingJDBC usage summary
f.grid_sample
Refuse to work overtime, a productivity tool set developed by programmers
cudaMemcpy study notes
跨专业考研难度大?“上岸”成功率低?这份实用攻略请收下!
Project development software directory structure specification
Word/Excel fixed table size, when filling in the content, the table does not change with the cell content
11、Redis实现关注、取消关注以及关注和粉丝列表
LeetCode 每日一题 2022/7/25-2022/7/31
编译Hudi
19.支持向量机-优化目标和大间距直观理解
经典链表OJ强训题——快慢双指针高效解法
16. Registration Center-consul
TCP/IP四层模型
YOLOV5 study notes (3) - detailed explanation of network module