当前位置:网站首页>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.
边栏推荐
- 4. Sensitive word filtering (prefix tree)
- Live Preview | KDD2022 Doctoral Dissertation Award Champion and Runner-up Dialogue
- Office automation case: how to automatically generate period data?
- [C language foundation] Solve C language error: expected ';', ',' or ')' before '&' token
- 15、网站统计数据
- 加密公司向盗窃的黑客提供报价:保留一点,把剩下的归还
- 图解lower_bound&upper_bound
- SQL注入 Less54(限制次数的SQL注入+union注入)
- 16、热帖排行
- The principle of complete replication of virtual machines (cloud computing)
猜你喜欢

Huawei od dice js

跨专业考研难度大?“上岸”成功率低?这份实用攻略请收下!

CefSharp入门-winform

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

Project (5) - Small target detection tph-yolov5

IIR滤波器和FIR滤波器

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

The application of AI in the whole process of medical imaging equipment

SQL注入 Less46(order by后的注入+rand()布尔盲注)

String为什么不可变?
随机推荐
Mysql 45讲学习笔记(二十五)MYSQL保证高可用
f.grid_sample
Is interprofessional examination difficult?Low success rate of "going ashore"?Please accept this practical guide!
SQL注入 Less47(报错注入) 和Less49(时间盲注)
JS 函数 this上下文 运行时点语法 圆括号 数组 IIFE 定时器 延时器 self.备份上下文 call apply
CentOS7下mysql5.7.37的卸载【完美方案】
[C language foundation] Solve C language error: expected ';', ',' or ')' before '&' token
【CV项目调试】CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT问题
Discussion on Service Commitment of Class Objects under Multithreading
10. Redis implements likes (Set) and obtains the total number of likes
Difference between CMOS and TTL?
自动化办公案例:如何自动生成期数据?
加密公司向盗窃的黑客提供报价:保留一点,把剩下的归还
什么是系统?
2022牛客多校联赛第四场 题解
Unity3D Button mouse hover enter and mouse hover exit button events
Local area network computer hardware information collection tool
【HCIP】ISIS
CloudCompare&PCL 计算两个点云之间的重叠度
4. Sensitive word filtering (prefix tree)