当前位置:网站首页>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++程序等等,都可以使用此方法来进行远程调试。
边栏推荐
- Pythagorean tuple od js
- Force buckled brush the stairs (7/30)
- 7、私信列表
- STM32CUBEMX develops GD32F303 (11) ---- ADC scans multiple channels in DMA mode
- 怎样做好一个创业公司CTO?
- Calculate S=a+aa+…+aa…a
- Word/Excel fixed table size, when filling in the content, the table does not change with the cell content
- Brute Force/Adjacency List Breadth First Directed Weighted Graph Undirected Weighted Graph
- STM32CUBEMX开发GD32F303(11)----ADC在DMA模式下扫描多个通道
- StringJoiner in detail
猜你喜欢

Introduction and use of Drools WorkBench

mysql view

静态路由解析(最长掩码匹配原则+主备路由)

7. List of private messages

Drools Rule Properties, Advanced Syntax

mmdetection trains a model related command

The final exam first year course

Live Preview | KDD2022 Doctoral Dissertation Award Champion and Runner-up Dialogue

基于opencv实现人脸检测

Discourse 自定义头部链接(Custom Header Links)
随机推荐
系统需求多变如何设计
12 磁盘相关命令
CentOS7下mysql5.7.37的安装【完美方案】
Software accumulation -- Screenshot software ScreenToGif
【C语言基础】解决C语言error: expected ‘;‘, ‘,‘ or ‘)‘ before ‘&‘ token
如何搭建私有yum源
Brute Force/Adjacency Matrix Breadth First Directed Weighted Graph Undirected Weighted Graph
f.grid_sample
Static route analysis (the longest mask matching principle + active and standby routes)
Introduction and use of Drools WorkBench
19. Support Vector Machines - Intuitive Understanding of Optimization Objectives and Large Spacing
MPPT solar charge controller data collection - through the gateway acquisition capacity battery SOC battery voltage, wi-fi
multiplayer-hlap 包有问题,无法升级的解决方案
JetPack component Databinding
15. Website Statistics
开题报告之论文框架
Calculate S=a+aa+…+aa…a
【Android】Room —— SQLite的替代品
To write good test cases, you must first learn test design
Introduction to flask series 】 【 flask - using SQLAlchemy