0% found this document useful (0 votes)
42 views14 pages

5 Debugging

Uploaded by

jai krishnan
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)
42 views14 pages

5 Debugging

Uploaded by

jai krishnan
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/ 14

Debugging

1
Debugging

▪ Debugging is a technique by which we can find the error, correct the error and detect

the error.

▪ SAP debugger is a part of ABAP workbench only.

2
Ways of Debugging

▪ There are 2 ways of debugging.

1. Set the breakpoint on any executable statement and program stops automatically at

that point.

2. We can debug the code with the help of transaction code /h.

3
Execution Keys

▪ There are 4 execution keys in debugging mode.

1. F5 - Step by step execution

2. F6- Line by line execution

3. F7 - Return

4. F8 - Continuous execution or exit

4
System Variables in Debugging Mode

▪ There are 2 default system variables available in the debugging mode.

1. SY-SUBRC - System variable for return code(successful = 0, not successful = other than

0).

2. SY-TABIX - It returns the current line index inside a loop.

5
Static Breakpoints

▪ Static breakpoints are also called as user independent breakpoints.

▪ The syntax to set a static breakpoint is BREAK-POINT.

6
Dynamic Breakpoints

▪ Dynamic breakpoints are also called as user dependent breakpoints.

▪ The syntax to set a dynamic breakpoint is BREAK username.

7
Various Operations on Internal Table in Debugging Mode

▪ The various operations on internal table in the debugging mode are as follows:

 Deleting a row from an internal table.

 Editing a row of an internal table.

 Adding a row to an internal table.

 Saving internal table to a local file.

 Delete complete table.

8
Jump to a Particular Statement in Debugging Mode

▪ We can jump to a particular statement in debugging mode by using the path :

Debugger-Go to statement.

▪ We can also jump to a particular statement by using the shortcut ‘Shift + F12’.

9
Setting Breakpoints at Keywords in Debugging Mode

▪ We can set the breakpoints at keywords in debugging mode like - SELECT, CALL

FUNCTION, MESSAGE etc.

▪ We can also set breakpoints on specific function modules or subroutines or messages

etc.

1
0
Deleting and Deactivating the Breakpoints

▪ Deleting breakpoints - Permanently deleting the breakpoints in that particular session.

▪ Deactivating breakpoints - Temporary deleting the breakpoints in that particular session.

When we run the program again, the breakpoint resumes.

1
1
Watchpoints

▪ Watchpoints are used to monitor the values of variables, workareas and internal tables.

1
2
Breakpoints and Watchpoints Comparison

▪ Breakpoints are for executable statements whereas watchpoints are used to monitor

the values of variables, work areas and internal tables.

▪ A user can set a maximum of 30 breakpoints whereas a user can set a maximum of 10

watchpoints.

1
3
Thank You

1
4

You might also like