5 Stopping the Program
The principal purposes of using a debugger are so that you can stop your
program before it terminates; or so that, if your program runs into
trouble, you can investigate and find out why.
Inside DDD, your program may stop for any of several reasons, such
as a signal, a breakpoint, or reaching a new line after a DDD command
such as `Step'. You may then examine and change variables, set new
breakpoints or remove old ones, and then continue execution.
The inferior debuggers supported by DDD support two mechanisms for
stopping a program upon specific events:
* A "breakpoint" makes your program stop whenever a certain point in
the program is reached. For each breakpoint, you can add
conditions to control in finer detail whether your program stops.
Typically, breakpoints are set before running the program.
* A "watchpoint" is a special breakpoint that stops your program when
the value of an expression changes.
- Stop at a certain point.
- Stop at a certain condition.
- Stop manually.
- Stopping X Programs
- Take care of grabbed pointers!
automatically generated by info2www version 22.214.171.124