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
- Duplication of an asset in the Project view is continued for some time when holding and releasing CTRL+D
- "Failed to create Convex Mesh from source mesh" PhysX errors are thrown when looking around the Scene View while Collision Geometry is set to true
- ScrollView is not taking Into account header height when handling mouse wheel scrolling in MultiColumnTreeView
- Build fails with "Shader error in 'BK/StandardLayered" when using a custom shader
- Crash on SkinnedMeshRenderer::UpdateSkinnedMeshes when interacting with the Editor in a specific Scene
Add comment