BUG: RPC debugging does not work until you perform a step-by-step debug (318717)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2003), Professional Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Academic Edition
  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Academic Edition
  • Microsoft Visual C++ .NET (2003)
  • Microsoft Visual C++ .NET (2002)

This article was previously published under Q318717

SYMPTOMS

If you have not performed any debugging on your computer with either Visual Studio .NET or the Visual C++ 6.0 Debugger, remote RPC debugging does not work, even though you have turned on RPC Debugging in VS .NET.

CAUSE

Visual Studio .NET sets the registry key DebugObjectRPCEnabled, which permits RPC debugging on the computer. However, Visual Studio .NET does not set the registry key when you click to select RPC Debugging. Visual Studio .NET sets the registry key the first time you perform step-by-step debugging on your computer.

RESOLUTION

Run a debug session and do step-by-step debugging at least one time before you use the RPC debugging on your computer.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

This issue may occur in the following test scenario:
  1. Client and server applications are developed on one computer.
  2. While you are testing the applications by using two computers, you find an issue and you have to use remote RPC debugging.
  3. You install Visual Studio .NET on the second computer.
  4. You set RPC Debugging in Visual Studio .NET on the second computer. To do this, you follow these steps:
    1. In Visual Studio .NET, on the Options menu, click Debugging. The RPC Debugging option is in the Native subsection.
    2. Click to select RPC Debugging to set the registry key DebugObjectRPCEnabled.
    However, the registry key is not actually set until the first time you run step-by-step debugging on your computer.
The full path of the registry key is as follows:
  • For Windows NT, Windows 2000, and Windows XP:

    HKEY_LOCAL_MACHINE\Software\ 
       Microsoft\ 
          Windows NT\ 
             CurrentVersion\ 
                DebugObjectRPCEnabled

  • For Windows 95, Windows 98, and Windows Millennium Edition (Windows Me):

    HKEY_LOCAL_MACHINE\Software\ 
       Microsoft\ 
          Windows\ 
             CurrentVersion\ 
                DebugObjectRPCEnabled
    							


Modification Type:MinorLast Reviewed:1/25/2006
Keywords:kbvs2005doesnotapply kbvs2005swept kbtshoot kbvs2002sp1sweep kbBug kbDebug kbpending kbsetup KB318717 kbAudDeveloper