Connecting the Host and Target Machines
Once remote debugging is enabled, you must specify the type of connection between the debugger host and the remote target: local or network.
Configure the remote connection on the debugger host computer first.
To configure a remote connection on the debugger host computer
From the Build menu, click Debugger Remote Connection.
The Remote Connection dialog box appears.
In the Platform drop-down list box, select the appropriate platform.
In the Connection drop-down list box, select the Network (TCP/IP) connection type.
Click Settings.
The Win32 Network Settings dialog box appears.
Specify the remote machine’s name or address in the Target machine name or address field and enter the Debug monitor password.
The password must match the password set on the remote target computer.
Click OK to close the Win32 Network Settings dialog.
Click OK to close the Remote Connection dialog.
Now, configure the remote target computer.
To configure a remote connection on the remote computer
Launch MSVCMON.EXE.
The Visual C++ Debug Monitor dialog box appears.
Click Settings.
The Win32 Network Settings dialog box appears.
Specify the debugger host machine name or address in the Target machine name or address field and enter the Debug monitor password.
The password must match the password on the remote target computer.
Click OK.
Click Connect.
The Connecting dialog box appears. This dialog box will be hidden while you are debugging.
Click Disconnect to break the remote connection when you are done remote debugging.