Professional Documents
Culture Documents
Line by Line debug:Step 1:- Below I have created a sample program in the name of Zdebug.
Step 2: Now Place the cursor on the line and Set Session Breakpoints.
Step 6: There are 4 different options in the debugger to execute the program. They are:
F5: By using this button F5, executes our program step by step.
F6: By using this button F6, executes a subroutine or function module without entering
into it.
F7: By using this button F7, comes out of a subroutine or function module.
F8: By using this button F8, directly executes the program, if there is more than one
breakpoint then it can move one breakpoint to another.
Debugging By Session:
Creating Watchpoints:
If you want to debug a particular row in an internal table instead of going line by line you
can go to that particular row by creating a watch point.
Step 1: In this table T_KNA1 we want to reach 10th row i.e. kunnr = 1030.
Step 2: Place the cursor on the variable and click on create watch point button.
This way we learnt how to debug a program By Line and By Sessions method.