COBOL watchpoints are a type of breakpoint for native COBOL code that you set on individual data items (not on lines of code). They enable you to watch an area of memory associated with the particular item, and whilst debugging, execution breaks each time the associated memory is updated, or if a condition is attached to the data item, when the condition and/or hit count setting is satisfied. You can set COBOL watchpoints either before you start to debug or during your debug session.
To add a COBOL watchpoint:
The watchpoint is listed in Watchpoints (Native COBOL) window, and is enabled by default (as indicated by to its left). You can toggle this watchpoint on and off by clicking .
The Watchpoint conditions dialog box appears.
If you define both an expression and a hit count value, both criteria must be satisfied before execution will halt.
The COBOL watchpoint is displayed in the Watchpoints (Native COBOL) window, and is enabled for any subsequent debugging session until you disable it (clear to the left of the name) or delete it.
When the watchpoint is enabled, debugging stops on the line that immediately follows the line on which the data has changed.