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 {