Game Development Community

Breakpoints reveal false data

by Will O-Reagan · in Torque X 2D · 07/07/2007 (10:57 pm) · 5 replies

I've been placing breakpoints, and 100% consistantly, in one area of my game, its misrepresenting the data. Basically, I'm setting and integer to 19, and it says, its 13, but then goes on to execute the code as if its 19. Heres the screenshot

www.modernmoviei.com/breakpointerror.png

About the author

I have a degree in dramatic art, and literature, from UC Santa Barbara. I've worked for a few studios, also at Animax Ent in 2008, and some smaller studios. Currently studying Computer Science at CSU Channel Islands.


#1
07/08/2007 (5:05 am)
That's because it's a hexadecimal value. Hexadecimal 13 is 19 in decimal.

0x followed by a number means it is hexadecimal.
#2
07/08/2007 (10:13 am)
... ok i'm stupid.

Thats what I get for not having any professional programming schooling.
#3
07/08/2007 (10:33 am)
Dont worry about it, just write yourself one "I owe the forum one answer to a stupid question without attitude"-ticket like the rest of us ;)
#4
07/08/2007 (11:32 am)
Heres instructions on how to change it back if this ever happens to someone

Quote:
To change the numeric format
Right-click in a debugger window.

In the shortcut menu, set or clear Hexadecimal display.

The numeric format chosen here affects all debugger windows.
#5
07/10/2007 (5:48 pm)
Heh, another "weird" issue you may run into eventually is if you have it in release build. things will not get executed in the order you think.