Microsoft KB Archive/318717

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

Article ID: 318717

Article Last Modified on 1/25/2006

-

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

-



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:  Client and server applications are developed on one computer. While you are testing the applications by using two computers, you find an issue and you have to use remote RPC debugging. You install Visual Studio .NET on the second computer. You set RPC Debugging in Visual Studio .NET on the second computer. To do this, you follow these steps:  In Visual Studio .NET, on the Options menu, click Debugging. The RPC Debugging option is in the Native subsection.</li> Click to select RPC Debugging to set the registry key DebugObjectRPCEnabled.</li></ol>

However, the registry key is not actually set until the first time you run step-by-step debugging on your computer.</li></ol>

The full path of the registry key is as follows: <ul> For Windows NT, Windows 2000, and Windows XP:

 <pre class="fixed_text">HKEY_LOCAL_MACHINE\Software\ Microsoft\ Windows NT\ CurrentVersion\ DebugObjectRPCEnabled

</li> For Windows 95, Windows 98, and Windows Millennium Edition (Windows Me):

 <pre class="fixed_text">HKEY_LOCAL_MACHINE\Software\ Microsoft\ Windows\ CurrentVersion\ DebugObjectRPCEnabled

</li></ul>

Keywords: kbtshoot kbbug kbsetup kbdebug kbpending kbvs2002sp1sweep kbvs2005swept kbvs2005doesnotapply KB318717

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.