当前位置:网站首页>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.
边栏推荐
猜你喜欢

Mycat's master-slave relationship, vertical sub-database, horizontal sub-table, and detailed configuration of mycat fragmented table query (mysql5.7 series)

TCP详解(一)

Maximum area of solar panel od js

Project (5) - Small target detection tph-yolov5

CorelDRAW2022精简亚太新增功能详细介绍

Why is String immutable?

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

SQL injection Less46 (injection after order by + rand() Boolean blind injection)

工程(五)——小目标检测tph-yolov5

11、Redis实现关注、取消关注以及关注和粉丝列表
随机推荐
mycat的主从关系 垂直分库 水平分表 以及mycat分片联表查询的配置详解(mysql5.7系列)
php 网站的多语言设置(IP地址区分国内国外)
The difference between link and @import
SQL injection Less46 (injection after order by + rand() Boolean blind injection)
【CocosCreator 3.5】CocosCreator 获取网络状态
自动化办公案例:如何自动生成期数据?
YOLOV5 study notes (2) - environment installation + operation + training
12 Disk related commands
String为什么不可变?
如何搭建私有yum源
Why is String immutable?
PMP微信群日常习题
Go 项目实战-获取多级分类下的全部商品
CentOS7下mysql5.7.37的安装【完美方案】
图解lower_bound&upper_bound
Mycat's master-slave relationship, vertical sub-database, horizontal sub-table, and detailed configuration of mycat fragmented table query (mysql5.7 series)
10 Permission introduction
TCP/IP four-layer model
Compile Hudi
LeetCode中等题之分数加减运算