In This Chapter
Working with debuggers
Using the Code::Blocks debugger
Tracing code flow through an application and in and out of functions
Using other debuggers
Getting seriously advanced debuggers
Adding command line arguments to Code::Blocks debugging
In this chapter, we talk about how you can use a debugger to track down problems and bugs in your application. Sooner or later, things don’t work the way you planned them. In this case, you have several plans of attack. One plan involves a hammer and the computer, but we don’t recommend that one. Instead, we suggest using a debugger to try to fix the application.
A debugger is a special tool that you use for tracing line by line through your application. (Tracing is the act of viewing the code execution flow in an application.) Take a look at the BuggyProgram example, shown ...