This documentation is archived and is not being maintained.

How to: Debug Web Applications on a Remote Server

With the Visual Studio debugger, you can debug a Web application transparently on the local machine or a remote server. This means that the debugger functions the same way and allows you to use the same features on either machine. For remote debugging to work properly, however, there are some prerequisites.

  • Visual Studio remote debugging components must be installed on the server you want to debug. For more information, see Setting Up Remote Debugging.

  • By default, the ASP.NET worker process runs as an ASPNET user process. As a result, you must have Administrator privileges on the machine where ASP.NET runs to debug it. The name of the ASP.NET worker process varies by debug scenario and version of IIS. For more information see How to: Find the Name of the ASP.NET Process.

  • In Visual C++, the project must be set up to connect using DCOM rather than TCP/IP. To set this property, do the following procedure.

To enable Visual C++ projects to connect via DCOM

  1. Open the <Project>Property Pages dialog box.

  2. Open the Configuration Properties node if not already opened.

  3. Select the Debugging node under Configuration Properties.

  4. Choose Remote Windows Debugger under Debugger to launch.

  5. Choose Remote with Windows authentication under Connection.

    For more information, see Project Settings for a C or C++ Debug Configuration.

See Also