Finding run time errors?

Discussion about everything. New games, 3d math, development tips...
Post Reply
Jim121
Posts: 21
Joined: Sat Oct 11, 2008 2:23 am

Finding run time errors?

Post by Jim121 »

I was wondering if there is a program that finds run time errors?
Open Conquest Developer
web site:
http://openconquest.webs.com/
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

Yep. It's called a debugger...
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

xD

Yeah in your IDE you can setup two builds; Release and Debug (many more in fact but those are the most common and standard ones) and those are for what they sound like they're for. The release version is the version which you would release to the public, the debug version is the one you use to track down bugs and the like, they're setup to compile in debug symbols and data so that when your app crashes the debugger can show you what line of code crashed and what state variables were in.

What IDE are you using?
Image Image Image
Jim121
Posts: 21
Joined: Sat Oct 11, 2008 2:23 am

Post by Jim121 »

Dev-C++
Open Conquest Developer
web site:
http://openconquest.webs.com/
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Yeah that's got a debugger built into it... There should be a debug menu at the top or something... I didn't actually do any debugging back when i used DevC++ though so can't tell you much about it!

In MSVC you have seperate build configurations for each type of build so in the Debug build you can link to debug libraries (you could build a debug lib of Irrlicht if you were getting crashes inside Irrlicht) whereas in Release build you'd link to the release libraries, there's probably something similar in DevC++.
Image Image Image
wyrmmage
Posts: 204
Joined: Sun Mar 16, 2008 3:12 am
Contact:

Post by wyrmmage »

yep :)

Image
Worlds at War (Current Project) - http://www.awkward-games.com
Ganadu'r, The Eternal Sage (Other Current Project) - http://rpg.naget.com
wITTus
Posts: 167
Joined: Tue Jun 24, 2008 7:41 pm
Location: Germany

Post by wITTus »

Dev-C++ is so damn buggy... I wouldn't recommend it anymore... :(
Jim121
Posts: 21
Joined: Sat Oct 11, 2008 2:23 am

Post by Jim121 »

I have debuged the the program and I get the following.

Image


and


Image

Is there any way of finding out which part of the code is responsible?
Open Conquest Developer
web site:
http://openconquest.webs.com/
Post Reply