Skip to main content
gamedev.net
🔒 Locked

Difference between debug and debugger?

Started by gimp Dec 6, 2001 at 10:51 PM 4 replies 450+ views
Original Post
gimp
gimp
I execute my application and a bit of my geometry is missing. Then to try and track it down I try to run it in the debugger, this time however the geometry is there. Chris Brodie http:\\fourth.flipcode.com
Chris Brodie
xyzzy00
xyzzy00
A different heap is used while running under the debugger. With the debugger, your allocated memory gets cleared to 0xbaadf00d. Without the debugger, your allocated memory is just left to be whatever random garbage it is.

My bet is that you have an uninitialized variable somewhere in your code, and somehow 0xbaadf00d works for you.. maybe you are expecting your variable to be non-zero.

Enjoy! This is one of the hardest kinds of bugs to track. Might need to resort to printfs.

xyzzy
Kwizatz
Kwizatz
Bad food (0xbaadf00d) really? fun fact to know, is that really true? which debugger?

AdmiralBinary
AdmiralBinary
LOL - That''s gotta be the funniest memory address I''ve ever seen!

---------------

I finally got it all together...
...and then forgot where I put it.
Sandman
Sandman
I like 0xCABBA6E5 myself.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.