View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0029297||2.x IDE Bugs||Debugger||Public||2018-04-11 13:45||2018-06-28 10:30|
|Reporter||Sam Cumming||Assigned To||Alan Savage|
|Priority||Medium||Severity||C - General||Reproducibility||100%|
|Target Version||Fixed in Version||2.1.5|
|Summary||0029297: Debugger: Global variable tooltip shows an incorrect value in attached project|
|Description||If 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 Reproduce||1. 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.
|Tags||No tags attached.|
|2.x IDE Found In||18.104.22.1688|
|2.x Runtime Found In||22.214.171.124|
|2.x IDE Verified In||126.96.36.1993|
|2.x Runtime Verified In||188.8.131.52|
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
|Verified > 184.108.40.2063 / rt 220.127.116.11 - Closing.|