Debugging a Program With dbx

Watchpoints

Watchpointing is the capability of dbx to note when the value of a variable or expression has changed.

Stopping Execution When Modified

To stop program execution when the contents of an address is written to:


(dbx) stop modify &variable

Keep these points in mind when using stop modify:

Stopping Execution When Variables Change

To stop program execution if the value of a specified variable has changed:


(dbx) stop change variable

Keep these points in mind when using stop change:

Stopping Execution on a Condition

To stop program execution if a conditional statement evaluates to true:


(dbx) stop cond condition