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

    Illegal HTML tag removed : 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

    Illegal HTML tag removed : watchpoint

    is a special breakpoint that stops your program when the value of an expression changes.

  • Breakpoints: Stop at a certain point.

  • Watchpoints: Stop at a certain condition.
  • Interrupting: Stop manually.
  • Stopping X Programs: Take care of grabbed pointers!

Node:Breakpoints, Next:Watchpoints, Up:Stopping

results matching ""

    No results matching ""