Debugging is the process of finding and resolving the problems or defects of a program. This may include interactive debugging, data/control flow analysis, and unit and integration testing. In this section, we will only focus on interactive debugging, which is the process of executing your source code line-by-line with breakpoints, all while showing the values of the variables being used and their corresponding memory addresses.
Debugging C++ programs
Tools to debug a C/C++ program
Depending on your development environment, there are lots of tools available in the C++ community. The following list shows the most popular ones on different platforms.
- Linux/Unix:
- GDB: A free open source Command-Line Interface (CLI) debugger...