Abap Debugger
Abap Debugger
Sap
Abap
Debugger
Sonu Jangir Abap Developer
It is used to check the programs or source code line by line and block by block for
finding and rectifying errors or bugs.
1) Classic Debugger
2) New Debugger
1) Classic Debugger:
It is also called old debugger.
This debugger opens on same session.
It has lots of limitations such as different desktops are not there, no
separate sections for local, global variables etc.
1) Desktop 1:
The variables section is displayed vertically to the source code or
program in case of this desktop.
2) Desktop 2:
It contains all the events used in source code or program.
Note: An icon ABAP source code under stack type is used to open source code or
program from
The Debugger.
3) Desktop 3:
It is used to arrange variables section horizontally to source code or
program.
4) Standard: It is a combination of desktop1 &2.
Following Are Different Sub tabs Under Desktop1 &3 Are Standard:
B) Local Tab:
It contains all the local data variables and their values used in the function
modules , sub routines , methods etc.
C) Global:
It contains all the global data variables and their values in the program or
source code.
6. Structures Tab:
It is used to check data structures, variables such as work areas, structure type,
and field .
7. Tables:
8. Objects:
It is used to check objects of the program or source code such as work flow
objects etc.
1) Single Step:
The function key F5 or single step icon is used to check line by line of the
program or source code.
EX:
F5 WRITE : ………….
2) Execute :
The function key F6 or execute icon is used to check block by block of
program or source code.
Write
F6 ENDFORM.
WRITE…………………
3) Return:
4) Continue:
The function key F8 or an icon continue is used to jump from one break
point into the next break point then execute once the last break point is
reached.
Break Points
Note: In the real time session break points are mostly used and external break
points are used rarely
Click on STOP icon (session break point) or click on the statement line at
gray color vertical section to set or delete the session break points up to 30.
Note: The STOP icons are appeared beside the statement line once they are set.
Note: The program or source is stopped in the debugger at the first set break
point.
Use the function keys F5/F6/F7/F8 to check line by line or block by block.
* Or
Note: In the real time the ABAP statement BREAK-POINT should not be used
since all the users are stopped.
Once the program or source code is in change mode click on find icon.
EX:WRITE:…………
Note: program or source code is stopped at the first set static break-point.
Use the function keys f5/f6/f7/f8 to check line by line or block by block.
They are used to check the program or source code in case of not
possible to find a location
They are used to stop the programs or source code once the set condition is
reached or true.
Note: The system gives a success message as watch point created once
watch point is created.
Note: The program or source code is stopped once the set condition of watch
point is reached.
Note: The System gives a success massage as ‘watch point created’ once the
watch point is created.
Note: The program or source code is stopped once the set condition of
created watch point is reached.
Note: The corresponding data variables, type & length are displayed when the
cursor is
Note: Double click on the data structure variables (work area, internal tables)
under variable column to check
1) Once the program or source code is stopped in new debugger double click
on data variable name such as variable name, field name or field value of an
internal table (scrolls the data variable section in right hand side).
2) Double click on change contents icon that appears beside value column
change data variable value.
3) Press enter.
4) Use the function keys f5/f6/f7/f8 to check line by line or block by block.
Classic Debugger:
New Debugger: