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

  1. From the Build menu, click Debugger Remote Connection.

    The Remote Connection dialog box appears.

  2. In the Platform drop-down list box, select the appropriate platform.

  3. In the Connection drop-down list box, select the Network (TCP/IP) connection type.

  4. Click Settings.

    The Win32 Network Settings dialog box appears.

  5. 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.

  6. Click OK to close the Win32 Network Settings dialog.

  7. Click OK to close the Remote Connection dialog.

Now, configure the remote target computer.

To configure a remote connection on the remote computer

  1. Launch MSVCMON.EXE.

    The Visual C++ Debug Monitor dialog box appears.

  2. Click Settings.

    The Win32 Network Settings dialog box appears.

  3. 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.

  4. Click OK.

  5. Click Connect.

    The Connecting dialog box appears.  This dialog box will be hidden while you are debugging.

  6. Click Disconnect to break the remote connection when you are done remote debugging.