Sign in to follow this  
GuitarPlayer0912

Clueless on debugging

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this