Debugging is the process of analyzing the flow of the program to detect and mitigate defects or bugs. Unlike other programming languages, debugging in SAP involves analyzing different objects. Thus, different techniques are used to debug different types of objects.
In the debugging process, the controller is in our hands, that is, the execution of the program is in our hands.
ABAP Debugger is a tool from ABAP with which you can stop running programs and then execute them line-by-line or section-by-section.
There are mainly 4 ways to start the Debugger Session:
1. /h.
2. Statement: “Break-point”.
3. Push-Button.
4. From the Program.
We can activate the debugger just by writing an /h into the command bar as follow:
Then press enter, you will get a message in status bar as shown figure
Then execute the program you will directly entre into the debugger session.
This statement defines a breakpoint.
If the program reaches an active breakpoint in dialog processing, execution of the program is interrupted and the ABAP debugger opens.
An inactive breakpoint is ignored and execution of the program continues with the statement after BREAK-POINT.
There are two buttons available as shown
Apart from being able to execute an ABAP program in the Debugger, you can also start the Debugger call by the choosing a breakpoint.
This is achieved by setting one or more of these breakpoints in the program.
A breakpoint is a signal at a particular point in the program that tells the ABAP runtime processor to interrupt processing and start the debugger.
When the program reaches this point the debugger is activated.
Types of Breakpoint
1. Session Breakpoint.
2. External Breakpoint.
Madhura Akiwate
SAP ABAP Consultant, Baranwal Consultancy and Services (BCS), Pune, Maharashtra, India