Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
0
Found in
2019.3.9f1
2020.1
2020.2
2021.1
2021.2
Issue ID
1295381
Regression
No
Breakpoints are not hit in runtime complied code when recompiling the code using RoslynCompilerService
How to reproduce:
1. Open the attached "1295381.zip" project
2. Open the SampleScene Scene
3. In the Edit->Preferences->General->ScriptChangesWhilePlaying select "Recompile after finished playing"
4. In the Hierarchy select Helloworld Object and check the "Recompile" checkbox in the Inspector
5. Open HelloWorldImpl.cs and attach a Breakpoint somewhere in the code
6. Attach a Debugger to Unity
7. Enter the Play Mode
Expected results: After entering Play Mode the Breakpoint is hit in the IDE
Actual results: Code is executed normally
Reproducible with: 2019.4.19f1, 2020.1.17f1, 2020.2.3f1, 2021.1.0b4, 2021.2.0a3
Could not test with: 2018.4.31f1 (Scripts throw errors after downgrading the project)
Note:
-Reproduces with multiple IDEs (Visual Studio, Rider)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note (2021.2.X):
Filed upstream bug: https://github.com/mono/mono/issues/20835 -- Will reactivate when issue is fixed upstream.