View Issue Details

IDProjectCategoryView StatusLast Update
00292972.1 IDE Bugs [2.x IDE Bugs] DebuggerPublic2018-04-16 09:24
ReporterSam CummingAssigned ToAlan Savage 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ResolvedResolutionFixed 
Product Version 
Fixed in Version 
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.
2.x IDE Found In2.1.4.288
2.x Runtime Found In2.1.4.203
2.x IDE Verified In
2.x Runtime Verified In

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