Like give me a walkthrough, a step by step guide, telling me everything I need to do to setup my program in order to be able to benefit from the debugger. Its very complex to me, other debuggers I've used didnĀ“t require any setting up at all, and although I've been using codeblocks for over a year I have never figured out how to use the debugger, though lord knows I've tried.
all the documentation i've seen on the debugger is written for ph.d's. the codeblocks site has a 'tutorial', but it doesn't even explain what a 'break point' is.
Ok, please!!! would somebody please tell me what a break point is and how do I use it in debugging my program?
All I want to be able to do is to step through each line of my program, and be able to see what the values of any of the variables are at any given time. Why does codeblocks make this so incredibly hard?
I am sorry to see that no one has replied. I'm sorry i really know nothing about codeblocks, but why not try dev C++? it is the compiler I use and i find it quite useful
A breakpoint is something you can set at certain points in your code. When your program executes in debug mode, it will stop the program execution at the point you set in your code. Usually, you take this time to analyze the values of variables and other things.
@WTF:- I suggest you try download Visual C++ 2008 (its free) and start working with that. Debugging code is easy on that. I doubt anyone can walk you through Step by step on a forum. However, there's enough resources through Google Available on it.
If you are using VC++ then at whichever line you wanna stop the compiler, just go and click the right column of that line. The compiler stops at that line when you compile that program. Press "F10" after that to go to the next line in compilation. <-- I guess in words, thats all I can describe.
Well I've watched some videos on youtube, done exactly what they've told me to do, I've set up my break points on every line, and it still doesn't work. it doesn't work the way like it does in the video. all it does is pause in the beginning, then proceed to execute through the rest of the program. it does not pause at every line, and I can not check the values of all of my local variables. What good is a debugger if it doesn't do anything?