Set a watchpoint
- Last Updated: January 17, 2024
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
You can set a watchpoint to interrupt program execution when the value of a variable, buffer field, or attribute reference changes.
To add a watchpoint:
Watchpoints appear in the Breakpoints dialog box as "When expression changes [and condition]". The third and fourth items in the following figure are watchpoints.

Entering a watchpoint automatically creates a watch for the watchpoint expression. If you leave the Add Watch toggle checked, the Debugger displays the watch in the Watches pane of the Debugger's main window. You can uncheck the Add Watch toggle box to override this behavior (Add Watch is checked by default). The Debugger shows the current value of all watches each time the Debugger gains control of the application.
If the watchpoint expression or condition is invalid, the Debugger creates the watchpoint and displays an error message. In this case, edit the watchpoint and correct the mistake. If you do not fix the watchpoint before continuing program execution, the AVM generates an error when it gains control (via Step Into, Step Over, Continue, etc.) and disables the watchpoint.