s_isDebuggerCheckDisabledForTestPurposes 字段
Visual Studio 使用 System.Windows.Diagnostics.VisualDiagnostics
类中的这一专用字段来确定是否将对活动调试器执行内部检查。
语法
private static bool s_isDebuggerCheckDisabledForTestPurposes
警告
System.Windows.Diagnostics.VisualDiagnostics
类中的 API 仅当应用程序在调试器下运行时才可用。 将 s_isDebuggerCheckDisabledForTestPurposes
设置为 true
,即可在调试器外部访问 API。
在任何情况下,Microsoft 都不支持在生产应用程序中使用此字段。
要求
命名空间:System.Windows.Diagnostics
程序集:PresentationCore(在 PresentationCore.dll 中)
.NET Framework 版本:自 4.6 起可用。