Debugger watchpoint - aidamate13/AMS-Knowledge-Base GitHub Wiki
Watchpoint - What is it and how to activate it.
Another useful option is the Watchpoint button.
When debugging ABAP code, you can use watchpoints to track the value of individual ABAP variables.
The ABAP debugger stops as soon as the value of a watched variable has changed. Furthermore, you can specify conditions for watchpoints. The debugger then additionally checks whether this condition is fulfilled.
For example. We have a LOOP, and we want to know when the SY-TABIX reach 100.
-
Click on Watchpoint button
-
On the field Variable insert the variable that you want to check.
a) If you do not insert Free Condition Entry, then it will stop every time the value is changed.
b) If you insert Free Condition Entry, then it will stop only when this condition is fulfilled.
-
Enter the condition on the bottom.
-
If the watchpoint is valid inside the scope of the Program Name, a success message will appear.
-
After running the report, if the condition is fulfilled, the debugger will stop after the value reached.