ICorDebugProcess6::MarkDebuggerAttached Method
Changes the internal state of the debugee so that the Debugger.IsAttached method in the .NET Framework Class Library returns true
.
Syntax
HRESULT MarkDebuggerAttached(
BOOL fIsAttached
);
Parameters
fIsAttached
true
if the Debugger.IsAttached method should indicate that a debugger is attached; false
otherwise.
Return Value
The method can return the values listed in the following table.
Return value | Description |
---|---|
S_OK |
The debuggee was successfully updated. |
CORDBG_E_MODULE_NOT_LOADED |
The assembly that contains the Debugger.IsAttached method is not loaded, or some other error, such as missing metadata, is preventing it from being recognized. This error is common and benign. You should call the method again when additional assemblies load. |
Other failing HRESULT values. |
Other values likely indicate misbehaving debugger or compiler components. |
Remarks
Note
This method is available with .NET Native only.
Requirements
Platforms: See System Requirements.
Header: CorDebug.idl, CorDebug.h
Library: CorGuids.lib
.NET Framework Versions: Available since 4.6, .NET Native only
See also
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.