View Issue Details

IDProjectCategoryView StatusLast Update
00292972.x IDE BugsDebuggerPublic2018-06-28 10:30
ReporterSam CummingAssigned ToAlan Savage 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
Product Version 
Target VersionFixed in Version2.1.5 
Summary0029297: Debugger: Global variable tooltip shows an incorrect value in attached project
DescriptionIf you mouse over the 'current_player' global variable inside scr_next_player while debugging, you'll see that its value is 2. In the Globals section of the debugger, 'current_player' has a value of 1, so the tooltip value is incorrect.

It should be noted that this doesn't affect code execution, it appears to just be a visual issue (a confusing one at that).

I've also tried replicating this on a blank project but couldn't get the same behaviour to occur.
Steps To Reproduce1. Open the attached project.
2. Debug for Windows.
3. When the game breaks, mouse over 'global.current_player'.
4. Observe that this value is 2.
5. Step through, observe that 'if (global.current_player == 1)' resolves as true, even though the tooltip says that current_player is 2.
6. Open the Variables tab, observe in Globals that 'current_player' is 1.
TagsNo tags attached.
2.x IDE Found In2.1.4.288
2.x Runtime Found In2.1.4.203
2.x IDE Verified In2.1.5.313
2.x Runtime Verified In2.1.5.236

Activities

Alan Savage

2018-04-13 15:25

Developer   ~0058710

issue occurs in this case because there is also a instance member "current_player" variable and the tooltip was displaying this value instead of the global variable
-updated to check for & display the global. context in the tooltip

Sam Cumming

2018-06-28 10:30

Adminstrator   ~0060705

Verified > 2.1.5.313 / rt 2.1.5.236 - Closing.