Professional Documents
Culture Documents
Debugging
ABAP / 4 - Debugger is the development workbench tool which allows you to stop a program during its execution when a particular condition is met When the program is stopped , you can use the debugger to display the contents of the table and variable being used by the program .
In ABAP debugger we can view and change data. It also allow you to execute our program line by line.
Return(F7) - The Debugger returns from a routine to the point at which control returns to the main program. Use this option to return from a subroutine, function module, or called program to the calling program. Continue(F8)- Use this option to process the program up to the next dynamic or static breakpoint or up to the cursor position. If there are no more breakpoints in the program and no cursor has been set, the system exits debugging mode and executes the rest of the program normally.
Watch Points
In SAP ABAP a WatchPoint can be set to break the program at the point when the value of a filed in the program changes. In SAP ABAP a maximum of 10 WathPoints can be set in a session. This is a very handy tool if you want to break and debug the program only from the point when a field under consideration has the desired value. 1. Choose Breakpoint Create watchpoint or the corresponding pushbutton. The Create Watchpoint dialog box appears: 2008 Intelligroup Inc. Confidential and proprietary Decide whether you want to set a local or global
Watch Points
If you want your watchpoint to be activated each time the contents of the field change, the definition is now complete, and you can return to the Debugger by pressing ENTER . To create a conditional watchpoint, that is only activated when a particular situation arises, choose one of the following relational operators Operator Meaning< Less than <=Less than or equal =Equal <>Not equal >= Greater than or equal 2008 Inc. than Confidential and proprietary Intelligroup > Greater
Watch Points