
Configuring the Windows Firewall
The Windows Firewall must be configured to enable remote debugging. When you start remote debugging for the first time, Visual Studio performs the necessary configuration on the Visual Studio host computer. Similarly, when you run the Remote Debugging Monitor on a remote computer for the first time, the Remote Debugging Monitor configures the Windows Firewall on that end.
On Windows XP, this configuration is completely transparent and automatic, but on Windows Vista, the new security model requires that you grant permission before the software can configure the firewall. This permission is granted through the User Account Control dialog box. For a description of the new security model and User Access Control, see The Windows Vista Security Model.
When the Remote Debugging Monitor has to configure the Windows Firewall on the remote computer, the User Access Control dialog box appears on the remote computer. If the remote computer is not visible, you may not realize that the UAC dialog box has appeared on its monitor. In that case, you may mistakenly believe that remote debugging has stopped responding. In reality, the Remote Debugging Monitor is merely waiting for someone to grant UAC permission on the remote computer.
One way to avoid this problem is to preconfigure the firewall on the remote computer by using the Remote Debugger Configuration Wizard.
It is highly unlikely that you will ever have to configure the Windows Firewall manually. If you do configure it manually, see How to: Manually Configure the Windows XP Firewall for Remote Debugging or How to: Manually Configure the Windows Vista Firewall for Remote Debugging.
To configure the Windows Firewall using the Remote Debugger Configuration Wizard
Make sure remote debugging components have been installed on the computer.
Click Start, point to All Programs, point to Visual Studio 9.0 and then click Visual Studio Remote Debugger Configuration Wizard.
Click Start, point to All Programs, point to Visual Studio 9.0, and then click Remote Debugger.
Follow the instructions in the Remote Debugger Configuration Wizard.