I have always wondered how to debug say an OpenGL or a SDL app. 'Cause what I experience every time I try to debug my game is that the debugger (i've tried both the native KDevelop debugger and kdbg) just runs the app until it crashes and I'm not able to use any of the useful functions like step in, step out, watch etc.
There is probably a very easy solution... so, ehh can anyone help me?
Oh, yes. there is one more thing. if i have a class in my code named glWorld. then i declare glWorld World=new glWorld(); how can I add a watch on some variable inside World now? I've tried World::var and World->var and so on, but it doesn't seem to work.