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
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
- The build size is larger when Models have Animation Type set to Generic
Add comment