Search Issue Tracker
By Design
Votes
0
Found in
5.3.0b3
Issue ID
737090
Regression
No
[VSTU] Visual Studio debugger shows a wrong value of a watched Int32 variable
Steps to reproduce:
1. Open attached project
2. Open Assets/Scene.unity
3. Open Assets/Script/TestCode.cs with Visual Studio
4. Put a breakpoint at line 19: Debug.Log(n);
5. Press "Attach to Unity" to start debugging
6. Switch to Unity editor and press play
7. Press 'MyCoroutine()' button in Game View
8. Visual Studio halts at the breakpoint
9. Inspect the value of the variable "n"
10. Notice it shows the value of 5 while it should be 1 (as it is printed in Cosole with Debug.Log)
Reproduced with: 5.1.4f1, 5.2.3f1, 5.3.0f3, 5.4.0a4
Tested with: Visual Studio Ultimate 2013, Visual Studio Community 2015
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
Add comment