0% found this document useful (0 votes)
59 views12 pages

A Complete Guide To Use Debugger in ABAP

This document provides a step-by-step guide to using the debugger in ABAP. It explains how to set breakpoints to pause program execution and inspect data. The debugger can be used to step through code line-by-line or section-by-section using buttons like F5, F6, F7, and F8. It also demonstrates how to create watchpoints to directly view a specific table row without stepping through the entire program. The debugger is a useful tool for troubleshooting issues in code and understanding how other programmers have implemented logic.

Uploaded by

Venkat Ram Reddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views12 pages

A Complete Guide To Use Debugger in ABAP

This document provides a step-by-step guide to using the debugger in ABAP. It explains how to set breakpoints to pause program execution and inspect data. The debugger can be used to step through code line-by-line or section-by-section using buttons like F5, F6, F7, and F8. It also demonstrates how to create watchpoints to directly view a specific table row without stepping through the entire program. The debugger is a useful tool for troubleshooting issues in code and understanding how other programmers have implemented logic.

Uploaded by

Venkat Ram Reddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

A Complete Guide to Using Debugger In ABAP:

Step By Step with Screenshots


Debugger is a wonderful tool used by ABAP programmers to track down an issue in a
given piece of code and also to understand the logic used by other programmer in
writing that program.
With this tool you can display data objects and check the flow logic by executing a
Program by line or by section.
In this blog I will take you through the step by step process of how to debug a sample
program in ABAP.
To start with, you can open debugger by setting breakpoints in the ABAP editor. Break
points are of two types. These are Session Break Point and External Break Point.

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 3: Now I execute the program

Step 4: Executed again.

Step 5: Checked the values in output table T_KNA1.

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.

Step 3: Set the condition as below in Free Condition Entry

Step 4: Watch point created.

Step 5: Here we can see the value of variable w_kna1-kunnr as 1030.

This way we learnt how to debug a program By Line and By Sessions method.

You might also like