• Advertisement
Sign in to follow this  

Clueless on debugging

This topic is 4577 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, I've had some problems with the new game that I'm programming, and I'm having trouble finding the errors. They're lost somewhere in the 2000+ lines of code. I'm not getting compile errors, but runtime errors. So I decided to debug the program. The problem is, I have no clue as to what to do. I clicked on debug in Dev C++, and it rebuilded my project. But I don't understand what step into means, or how to use any of the commands. When I'm debugging, I can't see my program. Any help on this subject will be greatly appreciated.

Share this post


Link to post
Share on other sites
Advertisement
In the long run, you should learn to use the debugger. For the short run, a common debugging technique is to print info to the console: variables, "I am here" statements, etc...

Also, I (and many others) recommend running your program early and often in the development cycle. Don't wait until you have 2000 lines of code to run it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement