Steps to reproduce:
1. Open the attached “1981392ECSDebugBug.zip“ project
2. Open the “SampleScene”
3. Open the “Assets/Scripts/NewUnitSystemClient.cs” script
4. Add breakpoints to lines 17, 29, 37, 43
5. Press “Attach to Unity”
6. In the Editor, Enter Play Mode
7. Click “Step Over” in the Debugging session
8. Observe the results
Expected result: The debugger stops at lines which have compiled code and no comments
Actual result: The debugger stops at random lines that can be empty or comments
Reproducible in: 2022.3.53f1, 6000.0.30f1, 6000.1.0a7
Couldn’t test in: 2021.3.46f1 (because of package errors with Entities and URP)
Reproducible on: Windows 11, Windows 10
Not reproducible on: No other environment tested
Notes:
- Reproducible in Visual Studio 2022
- Reproducible in JetBrains Rider