(ddd.info)Breakpoint Commands


Next: Moving and Copying Breakpoints Prev: Breakpoint Ignore Counts Up: Breakpoints
Enter node , (file) or (file)node

5.1.8 Breakpoint Commands
-------------------------

You can give any breakpoint (or watchpoint) a series of DDD commands to
execute when your program stops due to that breakpoint.  For example,
you might want to print the values of certain expressions, or enable
other breakpoints.(1)

   Using the `Commands' buttons of the `Breakpoint Properties' panel,
you can edit commands to be executed when the breakpoint is hit.

   To edit breakpoint commands, click on `Edit >>' and enter the
commands in the commands editor.  When done with editing, click on
`Edit <<' to close the commands editor.

   Using GDB, you can also "record" a command sequence to be executed.
To record a command sequence, follow these steps:

  1. Click on `Record' to begin the recording of the breakpoint
     commands.  

  2. Now interact with DDD.  While recording, DDD does not execute
     commands, but simply records them to be executed when the
     breakpoint is hit.  The recorded debugger commands are shown in the
     debugger console.

  3. To stop the recording, click on `End' or enter `end' at the GDB
     prompt.  To "cancel" the recording, click on `Interrupt' or press
     <ESC>.  

  4. You can edit the breakpoint commands just recorded using `Edit >>'.  

   ---------- Footnotes ----------

   (1) JDB, `pydb', and some DBX variants do not support breakpoint
commands.


automatically generated by info2www version 1.2.2.9