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

  • Context: C/C++ 
  • Thread starter Thread starter needOfHelpCMath
  • Start date Start date
  • Tags Tags
    Debugging
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
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.
 
Physics news on Phys.org
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.