C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-08-2004, 10:22 AM   #1
Registered User
 
MathFan's Avatar
 
Join Date: Apr 2002
Posts: 185
debugging an OpenGL app

hi guys...
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   Reply With Quote
Old 07-08-2004, 02:32 PM   #2
Registered User
 
linuxdude's Avatar
 
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   Reply With Quote
Old 07-09-2004, 07:15 AM   #3
Registered User
 
MathFan's Avatar
 
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   Reply With Quote
Old 07-09-2004, 04:30 PM   #4
Registered User
 
linuxdude's Avatar
 
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   Reply With Quote
Old 07-10-2004, 04:11 AM   #5
Registered User
 
MathFan's Avatar
 
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   Reply With Quote
Old 07-10-2004, 03:42 PM   #6
Registered User
 
linuxdude's Avatar
 
Join Date: Mar 2003
Location: Louisiana
Posts: 926
what was wrong? Could you tell us?
linuxdude is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 12:39 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22