Megosztás a következőn keresztül:


IDebuggerInfo::IsDebuggerAttached Method

Gets a value that indicates whether a managed debugger is attached to this process.

HRESULT IsDebuggerAttached (
    [out] BOOL *pbAttached
);

Parameters

  • pbAttached
    [out] A pointer to a value that is true if a managed debugger is attached to the process; otherwise, false.

Requirements

Platforms: See .NET Framework System Requirements.

Header: MSCorEE.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

See Also

Reference

IDebuggerInfo Interface