当前位置:网站首页>C# remote debugging
C# remote debugging
2022-07-31 03:01:00 【Hometown 2130】
In our daily life, we often encounter that the local computer can run the program, but other computers cannot run the program. In many cases, it is caused by environmental variables.We can use remote debugging, just copy the code in the past without installing the corresponding vs software, which saves time.This environment is that the virtual machine and the host are in a local area network, using vs2022.
1. On the remote computer, download the vs2022 remote tool
Download Visual Studio Tools - Free Install for Windows, Mac, Linux
2. On the remote computer, install

3. On the remote computer, start

Click OK

And record the IP address and port number of the remote computer, you will use it later
4. On the local computer, createA winform program

Copy the debug file to the remote computer and run it

5. On the local computer, select Attach to process

6. Enter the remote IP address and port number, click Find to connect 
At this point, find the running software and click the add button
7. Then go back to the remote computer,Click the button on the software, then the machine will have a breakpoint to enter

At the same time, the remote computer will also display the connection

Extended
For other programs developed using VS, such as websites or C++ programs, etc., this method can be used for remote debugging.
边栏推荐
- Chapter 9 SVM实践
- 19. Support Vector Machines - Intuitive Understanding of Optimization Objectives and Large Spacing
- try-catch中含return
- What is a distributed lock?Three ways of implementing distributed lock
- Moxa NPort 设备缺陷可能使关键基础设施遭受破坏性攻击
- mycat的主从关系 垂直分库 水平分表 以及mycat分片联表查询的配置详解(mysql5.7系列)
- The application of AI in the whole process of medical imaging equipment
- 12 磁盘相关命令
- 数学解决——环形链表问题
- CorelDRAW2022 streamlined Asia Pacific new features in detail
猜你喜欢
随机推荐
SQL注入 Less46(order by后的注入+rand()布尔盲注)
[Android] Room - Alternative to SQLite
刚出道“一战成名”,安全、舒适一个不落
分布式与集群是什么 ? 区别是什么?
4. Sensitive word filtering (prefix tree)
Chapter 9 SVM实践
共模电感的仿真应用来了,满满的干货送给大家
SQL 面试用题(重点)
字体压缩神器font-spider的使用
The Sad History of Image Processing Technology
CentOS7下mysql5.7.37的卸载【完美方案】
12 磁盘相关命令
19.支持向量机-优化目标和大间距直观理解
Modbus on AT32 MCU
Compile Hudi
5. SAP ABAP OData 服务如何支持 $filter (过滤)操作
C primer plus学习笔记 —— 8、结构体
[Godot][GDScript] 二维洞穴地图随机生成
【编译原理】递归下降语法分析设计原理与实现
YOLOV5 study notes (3) - detailed explanation of network module









