0% found this document useful (0 votes)
3 views11 pages

07 - ABAP Basics - Debugging

The document provides an overview of the ABAP Debugger tool, detailing its features and functionalities for executing ABAP programs. It explains how to initiate debugging, set breakpoints (static and dynamic), and utilize various function keys for debugging operations. Additionally, it describes the different types of windows available in the debugger and their purposes.

Uploaded by

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

07 - ABAP Basics - Debugging

The document provides an overview of the ABAP Debugger tool, detailing its features and functionalities for executing ABAP programs. It explains how to initiate debugging, set breakpoints (static and dynamic), and utilize various function keys for debugging operations. Additionally, it describes the different types of windows available in the debugger and their purposes.

Uploaded by

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

 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.

There are two ways to enter debugging


 /h on command bar
 Static Breakpoints

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
..

SELECT.. CALL METHOD…


… METHOD…
.. .. SELECT
… ..
ENDFUNCITON.. ..
ENDMETHOD

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..

SELECT.. CALL METHOD…


… METHOD…
.. .. SELECT
… ..
ENDFUNCITON.. ..
ENDMETHOD

8
bugger and Function Key: F7
Returns to the Previous Call Stack
program or Next break Point
...
A = B.

SELECT… Executed in Background


Debugging flow
Go inside Callable Block and Returning from Callable
PEROFRM sub1.. Block
FORM… Clicked F7 at this Position OR Returning point
SELECT.. SELECT..
Next Break Point
A=C
.. IF…
READ TABLE … SELECT…
.. ENDFORM.

CALL FUNCTION..
.. FUNCTION..

SELECT.. CALL METHOD…


… METHOD…
.. .. SELECT
… ..
..
ENDFUNCITON.. ENDMETHOD

9
bugger and Function Key: F8

Direct Execute or Next break


... Point
A = B.

SELECT… Executed in Background


Debugging flow
Go inside Callable Block and Returning from Callable
PEROFRM sub1.. Block
FORM… Clicked F8 at this Position
SELECT.. SELECT..
Next Break Point
A=C
.. ..
READ TABLE … SELECT…
.. ENDFORM.

CALL FUNCTION..
.. FUNCTION..

SELECT.. CALL METHOD…


… METHOD…
.. .. SELECT
SELECT.. … IF…
… SELECT..
… ENDFUNCITON.. ENDMETHOD
..

10
namic Break Points: Example TBD

11

You might also like