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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (2021.2.X):
Filed upstream bug: https://github.com/mono/mono/issues/20835 -- Will reactivate when issue is fixed upstream.