![]() |
| | #1 |
| Registered User Join Date: Apr 2002
Posts: 185
| debugging an OpenGL app 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. thnx
__________________ The OS requirements were Windows Vista Ultimate or better, so we used Linux. |
| MathFan is offline | |
| | #2 |
| Registered User Join Date: Mar 2003 Location: Louisiana
Posts: 926
| the same way you debug any other program. Do you know how to use gdb? I can't answer your second question I only program in C right now. |
| linuxdude is offline | |
| | #3 |
| Registered User Join Date: Apr 2002
Posts: 185
| Well, no I haven't used gdb, but I'll try it. thnx But: r u sure it's that simple? u don't need to specify what libraries executable uses or anything? and what if my game is running fullscreen?
__________________ The OS requirements were Windows Vista Ultimate or better, so we used Linux. Last edited by MathFan; 07-09-2004 at 07:20 AM. |
| MathFan is offline | |
| | #4 |
| Registered User Join Date: Mar 2003 Location: Louisiana
Posts: 926
| gdb tells you were your program goes arrai(I know that is wrong) It tells you what function or whatever screws with your memory. It doesn't matter what libraries. If all else fails post the code here. |
| linuxdude is offline | |
| | #5 |
| Registered User Join Date: Apr 2002
Posts: 185
| Thanx, I've got it working all right now...
__________________ The OS requirements were Windows Vista Ultimate or better, so we used Linux. |
| MathFan is offline | |
| | #6 |
| Registered User Join Date: Mar 2003 Location: Louisiana
Posts: 926
| what was wrong? Could you tell us? |
| linuxdude is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linking OpenGL in Dev-C++ | linkofazeroth | Game Programming | 4 | 09-13-2005 10:17 AM |
| OpenGL Window | Morgul | Game Programming | 1 | 05-15-2005 12:34 PM |
| OpenGL .dll vs video card dll | Silvercord | Game Programming | 14 | 02-12-2003 07:57 PM |
| OpenGL and Windows | sean345 | Game Programming | 5 | 06-24-2002 10:14 PM |
| opengl code not working | Unregistered | Windows Programming | 4 | 02-14-2002 10:01 PM |