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

Article translations Article translations
Article ID: 318717 - View products that this article applies to.
This article was previously published under Q318717
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

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
    							

Properties

Article ID: 318717 - Last Review: February 28, 2014 - Revision: 3.3
APPLIES TO
  • Microsoft Visual Studio .NET 2003 Professional Edition
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Academic Edition
  • Microsoft Visual Studio .NET 2002 Professional Edition
  • Microsoft Visual Studio .NET 2002 Enterprise Architect
  • Microsoft Visual Studio .NET 2002 Enterprise Developer
  • Microsoft Visual Studio .NET 2002 Academic Edition
  • Microsoft Visual C++ .NET 2003 Standard Edition
  • Microsoft Visual C++ .NET 2002 Standard Edition
Keywords: 
kbnosurvey kbarchive kbvs2005doesnotapply kbvs2005swept kbtshoot kbvs2002sp1sweep kbbug kbdebug kbpending kbsetup KB318717

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com