Appendix M. Using the GNU C++ Debugger
And so shall I catch the fly.
We are built to make mistakes, coded for error.
What we anticipate seldom occurs; what we least expect generally happens.
He can run but he can't hide.
It is one thing to show a man that he is in error, and another to put him in possession of truth.
In this appendix you will learn:
To use the run command to run a program in the debugger.
To use the break command to set a breakpoint.
To use the continue command to continue execution.
To use the print command to evaluate expressions.
To use the set command to change variable values during program execution.
To use the step, finish and next commands to control execution.
To use the watch command to see how a data member is modified during program execution.
To use the delete command to remove a breakpoint or a watchpoint.
M.2 Breakpoints and the run, stop, continue and print Commands
M.3 The print and set Commands
M.4 Controlling Execution Using the step, finish and next Commands
M.5 The watch Command
Answers to Self-Review Exercises