System.Diagnostics.Debugger.Break() should NOT be inlined. (#10151)
authorMike McLaughlin <mikem@microsoft.com>
Tue, 14 Mar 2017 01:17:43 +0000 (18:17 -0700)
committerGitHub <noreply@github.com>
Tue, 14 Mar 2017 01:17:43 +0000 (18:17 -0700)
Breaks debugger tests.

src/mscorlib/src/System/Diagnostics/Debugger.cs

index aad67bc..92df7e7 100644 (file)
@@ -30,6 +30,7 @@ namespace System.Diagnostics
         // Break causes a breakpoint to be signalled to an attached debugger.  If no debugger
         // is attached, the user is asked if he wants to attach a debugger. If yes, then the 
         // debugger is launched.
+        [MethodImplAttribute(MethodImplOptions.NoInlining)]
         public static void Break()
         {
             // Causing a break is now allowed.