07 - ABAP Basics - Debugging
07 - ABAP Basics - Debugging
Runtime Analysis
Troubleshootin
SQL Trace
Runtime Error
g Workload Analysis
1
Initiate Debugging
Debugger Tools and Its
Features
Function Keys
Different Windows
Code
Data Display
Dynamic Breakpoints
Update Debugging
System Debugging
External Breakpoint
2
ABAP Debugger
ABAP Debugger Tool is used to execute ABAP programs line by line or section by section. It is possible to edit the
contents of data objects and to check the program logic.
Break point or stopping point in the program will initiate ABAP debugger when executing the program.
There are two types of break points can be set in the program
Static Break Points
Source Code based: Can be written statements in the logic.
BREAK-POINT: Triggers for all users
Break <user ID>: Triggers for specific User
Editor based: Can be set by opening editor
Session Break point: Used for Dialog users
External Break point: Used for debugging from Outside
Dynamic Break Points: Can be set during debugging
3
ebugger Screen Shot
4
erent Types of Windows in the Debugger
5
erent Types of Windows in the Debugger
6
bugger and Function Key: F5
Single step statements:
Ex: WRITE, = , FOR, READ TABLE etc will be executed as a single step
...
A = B. Callable Blocks:
…
PERFORM, CALL FUNCTION, CALL METHOD.
SELECT…
When clicks on F5, it will go inside and execute statement by
PEROFRM sub1.. Statements
FORM…
SELECT.. SELECT..
A=C Go inside to the callable block and coming back to
.. .. caller
READ TABLE … Debugging flow
.. ENDFORM.
Point where Callable Block called OR Point where
control reaches after completion of previous
CALL FUNCTION..
FUNCTION.. processing block
..
7
bugger and Function Key: F6
Single step statements:
...
Single Step statements or Callable block statements can be
A = B.
…
executed as a single statement
SELECT…
PEROFRM sub1..
FORM…
SELECT.. SELECT..
A=C
.. .. Executed in Background
READ TABLE …
Debugging flow
.. ENDFORM.
Callable block will be executed as a
CALL FUNCTION.. single step
.. FUNCTION..
8
bugger and Function Key: F7
Returns to the Previous Call Stack
program or Next break Point
...
A = B.
…
CALL FUNCTION..
.. FUNCTION..
9
bugger and Function Key: F8
CALL FUNCTION..
.. FUNCTION..
10
namic Break Points: Example TBD
11