File: System\Diagnostics\Debug.NativeAot.cs
Web Access
Project: src\src\runtime\src\coreclr\nativeaot\System.Private.CoreLib\src\System.Private.CoreLib.csproj (System.Private.CoreLib)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Runtime.CompilerServices;
using System.Security;

namespace System.Diagnostics
{
    // .NET Native-specific Debug implementation
    public static partial class Debug
    {
        [DebuggerHidden]
        [Intrinsic]
        internal static void DebugBreak()
        {
            // IMPORTANT: This call will let us detect if debug break is broken, and also
            // gives double chances.
            DebugBreak();
        }
    }
}