当前位置:网站首页>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.
边栏推荐
- IIR滤波器和FIR滤波器
- 品牌广告投放平台的中台化应用与实践
- 工程(五)——小目标检测tph-yolov5
- SQL注入 Less46(order by后的注入+rand()布尔盲注)
- 【CocosCreator 3.5】CocosCreator 获取网络状态
- [Godot][GDScript] 二维洞穴地图随机生成
- Mysql 45讲学习笔记(二十五)MYSQL保证高可用
- Difference between CMOS and TTL?
- YOLOV5 study notes (3) - detailed explanation of network module
- 【异常】The field file exceeds its maximum permitted size of 1048576 bytes.
猜你喜欢

加密公司向盗窃的黑客提供报价:保留一点,把剩下的归还

Intel's software and hardware optimization empowers Neusoft to accelerate the arrival of the era of smart medical care

11、Redis实现关注、取消关注以及关注和粉丝列表

The use of font compression artifact font-spider

【编译原理】词法分析程序设计原理与实现

局域网电脑硬件信息收集工具

Word/Excel fixed table size, when filling in the content, the table does not change with the cell content

QML的使用

华为分布式存储FusionStorage知识点总结【面试篇】

【异常】The field file exceeds its maximum permitted size of 1048576 bytes.
随机推荐
IIR滤波器和FIR滤波器
共模电感的仿真应用来了,满满的干货送给大家
C#远程调试
CefSharp入门-winform
MP使用时的几个常见报错
CMOS和TTL的区别?
Why is String immutable?
Mysql 45讲学习笔记(二十三)MYSQL怎么保证数据不丢
SQL注入 Less47(报错注入) 和Less49(时间盲注)
Thesis framework of the opening report
JetPack组件Databinding
The principle of complete replication of virtual machines (cloud computing)
try-catch中含return
5. SAP ABAP OData 服务如何支持 $filter (过滤)操作
JS function this context runtime syntax parentheses array IIFE timer delay self.backup context call apply
Chapter 9 SVM实践
2022牛客多校联赛第四场 题解
经典链表OJ强训题——快慢双指针高效解法
19.支持向量机-优化目标和大间距直观理解
4、敏感词过滤(前缀树)