(ddd.info)Watchpoints


Next: Interrupting Prev: Breakpoints Up: Stopping
Enter node , (file) or (file)node

5.2 Watchpoints
===============

You can make the program stop as soon as some variable value changes, or
when some variable is read or written.  This is called "setting a
watchpoint on a variable".(1)

   Watchpoints have much in common with breakpoints: in particular, you
can enable and disable them.  You can also set conditions, ignore
counts, and commands to be executed when a watched variable changes its
value.

   Please note: on architectures without special watchpoint support,
watchpoints currently make the program execute two orders of magnitude
more slowly.  This is so because the inferior debugger must interrupt
the program after each machine instruction in order to examine whether
the watched value has changed.  However, this delay can be well worth it
to catch errors when you have no clue what part of your program is the
culprit.

Setting Watchpoints
Editing Watchpoint Properties
Editing all Watchpoints
Deleting Watchpoints
   ---------- Footnotes ----------

   (1) Watchpoints are available in GDB and some DBX variants only.  In
XDB, a similar feature is available via XDB "assertions"; see the XDB
documentation for details.


automatically generated by info2www version 1.2.2.9