Debugging

This is a discussion on Debugging within the C++ Programming forums, part of the General Programming Boards category; I know I'm going to get shunned at by the whole of the programming community, however I've never succesfully used ...

Debugging

I know I'm going to get shunned at by the whole of the programming community, however I've never succesfully used or relied on a debugger... yes I know shame shame!

I would like to learn how to use GNU compiler, but when I go to downlaod it I have to compile it! And I'm having absolutly no luck compiling it with DevCpp on Vista... I would like to know if anyone would be willing to help me along with either compiling the debugger, or helping me set it up.

And possibly learning how to debug...

I know that there are many many tutorials online that explain how to debug, so I don't expect someone to go and hold my hand, but I would like to know how to compile the debugger, and some basics of how to use it if at all possible... If I sound too newbish just ignore me.

DevCpp is an IDE which uses MinGW. MinGW is the Windows port of the GNU compiler collection (GCC) and associated tools (binutils). Included is GDB - the debugger.

When DevCPP was installed, it also installed MinGW. So you already have a working debugger ready to go. DevCPP (as an IDE) has a GUI interface for common debugging tasks - like setting break points and inspecting/changing variables while debugging.

"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell