Thanks for all the feedback. I was finely able to get the debugger to work with a program I found on line. (For other users, I included the code below into a new project I called Factorial. No other code was added) I didn't make any changes to the path I showed earlier. I'm now using TDM-GCC-64 5.1.0-2 compiler and I may not have had my default debuggers set to GDB64.
I had no idea of how to use the debugger before. Although all the project I have compiled, I may not have been using the debugger properly to test them.
To debug this project I set one breakpoint on int main and stepped from there. Also opened the debugger window-watches, then resized it a bit bigger then dragged it into the log area and anchored it there so I could watch it. (This is a nice CB feature)
I did note a few things that I have questions on:
1. Should I always compile a project
just before debugging it?
2. In windows 10 the console window disappears out of sight as soon as you run debug, however it gets pinned to the tool bar, so I can open it if I want. Is this a problem and is there a work around?
3. If I want to restart the debugger on the same project again. How do I clear all logs and text to restart the debugger? Can this be done with one command?
/* Good Program to test your debugger
* Fails when n=21
* Compute the factorial of n, with n=20.
* n! = 1*2*3*...*n
*/
#include <iostream>
using namespace std;
int main() {
int n = 20; // To compute factorial of n
int factorial = 1; // Initialize the product to 1
int i = 1;
while (i <= n) {
factorial = factorial * i;
i++;
}
cout << "The Factorial of " << n << " is " << factorial << endl;
return 0;
}
[code/]