What Does Watchpoint Mean?
In SAP, a watchpoint is a conditional breakpoint that is only defined in the ABAP Debugger. It is one of the runtime utility components provided to debug SAP application programs and serves as an indicator to the ABAP runtime processor to interrupt further program processing from the specified point or relation. Dynamic in nature, watchpoints help application developers monitor the contents of specified variables and the change of their values associated during runtime processing.
Techopedia Explains Watchpoint
- Unlike breakpoints,watchpoints are not activated until the specified field content is changed.
- Unlike dynamic breakpoints, all watchpoints are user specific and do not prevent other users from running related application programs.
- A watchpoint may be set as local or global. The only validity of a local watchpoint is the specified program, whereas a global watchpoint is valid throughout the specified program and other associated programs it calls during runtime.
- Logical conditions may be specified in watchpoints, unlike breakpoints, and may set a maximum of five per session. A watchpoint is provided with a relational operator and comparison field to specify the conditions for interrupting.
- Like Breakpoint, watchpoints may be modified and deleted as needed.
- Watchpoints created in New ABAP Debugger are not valid and may not be used after switching to classic debugger, and vice versa.
- Once a watchpoint is reached, a yellow arrow is specified on the program statement and an alert is given as “watchpoint is reached along with watchpoint variable.”