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
- Foldout arrow indent is misaligned in the Inspector when used in Custom Type
- [Android] The Player screen turns black when playing a video under certain conditions
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
Resolution Note (2021.2.X):
Filed upstream bug: https://github.com/mono/mono/issues/20835 -- Will reactivate when issue is fixed upstream.