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
- RenderDoc Capture Frame can't be completed after Particle System is simulated
- Editor crashes when attempting to connect the client machine to the host machine
- CameraDepthTexture is flipped upside down when URP is rendering without the final blit
- Camera.current returns null when Camera.targetTexture is set to null in OnPostRender
- Crash on BaseHierarchyProperty::Next when opening a specific project
Resolution Note (2021.2.X):
Filed upstream bug: https://github.com/mono/mono/issues/20835 -- Will reactivate when issue is fixed upstream.