-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Open
Labels
area-System.RuntimeuntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
Description
Problem
When debugging with .NET Framework source stepping enabled, F11 steps into ArgumentNullException.ThrowIfNull on null input, breaking debugger flow.
Expected: Step through user's if (input == null) or skip via [DebuggerStepThrough]
Actual: Steps into framework source
Reproduction
- Enable "Enable .NET Framework source stepping" in VS Options
- F11 on
ArgumentNullException.ThrowIfNull(input, nameof(input)) - Debugger enters framework method
Proposed Fix
[DebuggerStepThrough]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void ThrowIfNull([NotNull] object? argument, string? paramName = null)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-System.RuntimeuntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner