How to perform remote debugging under VS

When software debugging is required on the client, if the programming environment is not installed on the client, then the remote debugging function needs to be used.

VS provides strong support for remote debugging. There is a remote Debugger folder in the VS installation directory, such as: D:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Remote Debugger. There are two folders, x86 and x64, under this folder. The following application is 64-bit as an example:

  1. Copy the x64 folder to the target machine, find msvsmon.exe and open it.
  2. Tools -> option select no authentication , check to allow any user to debug
  3. Open VS on the local machine, select Debug -> Attach to Process, select remote debugging for transmission, enter the target host IP as the qualifier, refresh the process that needs to be debugged, and attach it.

To ensure the smooth loading of the debugging file, regenerate the program, put the .exe and .pdb together into the target machine

Guess you like

Origin blog.csdn.net/qq_23350817/article/details/108488340