Professional Documents
Culture Documents
5 Debugging
5 Debugging
5 Debugging
1
Debugging
▪ Debugging is a technique by which we can find the error, correct the error and detect
the error.
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
3. F7 - Return
4
System Variables in Debugging Mode
1. SY-SUBRC - System variable for return code(successful = 0, not successful = other than
0).
5
Static Breakpoints
6
Dynamic Breakpoints
7
Various Operations on Internal Table in Debugging Mode
▪ The various operations on internal table in the debugging mode are as follows:
8
Jump to a Particular Statement in Debugging Mode
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
etc.
1
0
Deleting and Deactivating the Breakpoints
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
▪ 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