I was looking for documentation on this and found nothing. I have MinGW installed and it works great. I just don't know how to use the debugger.
Given some simple code, let's say in a file called "mycode.cpp":
int main() { int temp = 0; for (int i = 0; i < 5; ++i) temp += i; return 0; }
... how to debug this. What commands do I use to debug code using MinGW and GDB in windows? Can I execute the code through the command line, as in Visual Studio? If so, what commands do I use for this?
Do you have any tutorials on using GDB? I could not find anyone, but if someone could direct me to what would be great. I'm tired of writing many std::cout statements to debug complex code.
c ++ debugging windows mingw gdb
Mike Webb Jan 12 '11 at 17:30 2011-01-12 17:30
source share