Starting Remote Debugging
After you have configured the connection on both ends, you can begin remote debugging.
To begin remote debugging
Set up a shared directory that both the debugging host machine and the remote target machine can view.
The shared directory can be on either machine or a network drive. The easiest option is to share the directory on the host machine that contains the project’s executable file.
Note If you can’t make a shared directory, copy the executable file and any needed DLLs to the remote target computer. With this method you need to be sure that the executable files and DLLs are recopied whenever changes are made.
Load the project into the Visual C++ development environment.
From the Project menu, click Settings.
The Project Settings dialog box appears.
Choose the Debug tab.
In the Category list box, select General and set the following items:
Executable for Debug Session Enter the name and path of the executable file as the debugger host computer sees it.
Working Directory Leave blank.
Remote Executable Path Enter the name and path of the executable file as the remote target computer sees it.
In the Category list box, select Additional DLLs.
Enter the name and path of any DLLs as the debugger host computer sees them.
Start the remote debugger on the remote target computer.
Find the Visual C++ and select the Visual C++ Debug Monitor icon. Click Connect to start the connection.
From the Build menu, click Debugger Remote Connection.
Confirm the choices for Platform and Connection or modify them as needed.
Begin debugging.