How Can You Debug Code Effectively in Dev C++?

  • Topic: C/C++ 
  • Thread starter needOfHelpCMath
  • Start date
  • Tags Tags
    Debugging
1 reply · 2K views · last reply
needOfHelpCMath
Messages
70
Reaction score
0
I am learning how to debug codes and would like to debug someone code using dev c++ :D. Not too hard or too simple of a code.
 
Generally speaking, I would first ask what is your development environment? What debugging tools are available to you?

The most telling things to look at are variable values during execution: are they what you think they should be? Any good debugger should give you variable values during execution. I'm pretty sure gdb can do that, as well as Visual Studio. Probably others like Eclipse, Code::Blocks, etc., do the same.