Reproduction steps:
1. Open the user’s attached project “UIElements.zip“
2. In the Project window open the “EventHelpers.cs” script (Packages > UI Test Framework > Runtime) with Visual Studio
3. In the Test Runner window run the “DelayTextFieldNotImmediate“ test and open its source code
4. In Visual Studio select the “EventHelpers.cs“ script and press the “Attach it to Unity” button
5. Add a breakpoint
Expected result: Unity does not crash
Actual result: Unity crashes
Reproducible with: 2022.2.0a17
Could not test with: 2020.3.36f1, 2021.3.5f1, 2022.1.8f1, 2023.1.0a2 - due to errors “EventHelpers.cs methods are inaccessible due to its protection level”
Reproduced on: Windows 10 Pro
Notes:
- Reproduces with Visual Studio 2019 and Visual Studio 2022
Stack trace:
0x00007FF8314D5DB9 (mono-2.0-bdwgc) [C:\\build\\output\\Unity-Technologies\\mono\\mono\\mini
debugger-agent.c:8861] method_commands_internal
0x00007FF8314DA675 (mono-2.0-bdwgc) [C:\\build\\output\\Unity-Technologies\\mono\\mono\\mini
debugger-agent.c:10440] debugger_thread
0x00007FF83130D6AB (mono-2.0-bdwgc) [C:\\build\\output\\Unity-Technologies\\mono\\mono\\metadata
threads.c:1268] start_wrapper_internal
0x00007FF83130D886 (mono-2.0-bdwgc) [C:\\build\\output\\Unity-Technologies\\mono\\mono\\metadata
threads.c:1344] start_wrapper
0x00007FF8DEF57034 (KERNEL32) BaseThreadInitThunk
0x00007FF8E0D42651 (ntdll) RtlUserThreadStart