From 7480f1a4f3ff6146a9a3261474b6dfc2d7a04301 Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Sat, 27 Jul 2019 19:20:16 +0300 Subject: [PATCH] Debug symbol magic --- .../XamlIl/Runtime/XamlIlRuntimeHelpers.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Markup/Avalonia.Markup.Xaml/XamlIl/Runtime/XamlIlRuntimeHelpers.cs b/src/Markup/Avalonia.Markup.Xaml/XamlIl/Runtime/XamlIlRuntimeHelpers.cs index 1c2fa17643..83d70122b3 100644 --- a/src/Markup/Avalonia.Markup.Xaml/XamlIl/Runtime/XamlIlRuntimeHelpers.cs +++ b/src/Markup/Avalonia.Markup.Xaml/XamlIl/Runtime/XamlIlRuntimeHelpers.cs @@ -149,11 +149,13 @@ namespace Avalonia.Markup.Xaml.XamlIl.Runtime [Obsolete("Don't use", true)] public static readonly IServiceProvider RootServiceProviderV1 = new RootServiceProvider(null); - [DebuggerStepThrough] + // Don't emit debug symbols for this code so debugger will be forced to step into XAML instead + #line hidden public static IServiceProvider CreateRootServiceProviderV2() { return new RootServiceProvider(new NameScope()); } + #line default class RootServiceProvider : IServiceProvider, IAvaloniaXamlIlParentStackProvider {