Accepts a common language runtime (CLR) version string that is returned from the CreateVersionStringFromModule function, and returns a corresponding debugger interface (typically, ICorDebug).
ppCordb
[out] Pointer to a pointer to a COM object (IUnknown). This object will be cast to an ICorDebug object before it is returned.
Return value
S_OK ppCordb references a valid object that implements the ICorDebug interface interface.
E_INVALIDARG
Either szDebuggeeVersion or ppCordb is null.
CORDBG_E_DEBUG_COMPONENT_MISSING
A component that is necessary for CLR debugging cannot be located. Either mscordbi.dll or mscordaccore.dll was not found in the same directory as the target CoreCLR.dll.
CORDBG_E_INCOMPATIBLE_PROTOCOL
Either mscordbi.dll or mscordaccore.dll is not the same version as the target CoreCLR.dll.
The interface that is returned provides the facilities for attaching to a CLR in a target process and debugging the managed code that the CLR is running.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Learn how to efficiently debug your .NET app by using Visual Studio to fix your bugs quickly. Use the interactive debugger within Visual Studio to analyze and fix your C# applications.