This private field in the System.Windows.Diagnostics.VisualDiagnostics class is used by Visual Studio to determine whether an internal check for an active debugger will be performed.
Syntax
private static bool s_isDebuggerCheckDisabledForTestPurposes
Warning
API's in the System.Windows.Diagnostics.VisualDiagnostics class are only available when an application is running under a debugger. Set s_isDebuggerCheckDisabledForTestPurposes to true to access the APIs outside of a debugger.
Microsoft does not support the use of this field in a production application under any circumstance.
Requirements
Namespace: System.Windows.Diagnostics
Assembly: PresentationCore (in PresentationCore.dll)
.NET Framework versions: Available since 4.6.



