using System; using System.Threading.Tasks; namespace Rider20182 { internal class DebuggerStackFrames2 { static DebuggerStackFrames2() { new DebuggerStackFrames2(); } public DebuggerStackFrames2() { Run(null); } public static void Run(string[] args) { new MyClass2().DoSomething(); } public static void SomeMethod() { SomeMethod(); } public static void SomeMethod() { new MyClass2().AsyncMethod(1, 2).Wait(); } } internal class MyClass2 { public void DoSomething() { DebuggerStackFrames2.SomeMethod(); } public async Task AsyncMethod(int a, int b) { await AsyncWaiter(); return 1; } public async Task AsyncWaiter() { await Task.Delay(100); // Place breakpoint here, and compare call stack with previous versions Console.WriteLine(); } } }