I recently used remote debugging and found that some steps are not too clear. By the way, I checked the information online to facilitate future queries.
Debugging between two computers is introduced here.
Generally, it is developed machine A and client machine B.
Generally, vs2010 is installed on a, but not on B.
First, prepare machine B.
1: Change the address of machine B to a network segment with machine A, for example
Machine A: 192.168.1.2
Machine B: 192.168.1.5
2: Open the remote connection of machine B
Click my computer-system properties-change settings-remote-Remote Desktop = allow any version to run
3: Search for the remote debugger folder in the vs installation directory on machine.
Copy the c: \ Program Files \ Microsoft Visual Studio 10.0 \ common7 \ ide \ remote debugger directory to machine B
It is recommended that both directories and files be consistent.
4: create a user and password consistent with machine
Start machine a preparation
1: Open the vs project file. Choose Properties> debug> use remote machine and enter 192.168.1.5.
Start online debugging
1: copy the EXE file generated on machine A to machine B. The directory paths must be the same:
2: msvsmon.exe in the x86folder of remote debuggeron machine B
3: run the software on machine A. If the program runs on machine B, it indicates sucess.
Supplement later