0% found this document useful (0 votes)
30 views25 pages

Online Debugging

The document discusses online debugging in SAP. It describes how the online debugging tool allows users to set breakpoints and watchpoints in ABAP code to debug programs, change field and table values at runtime, and step through code execution. The debugging tool provides an interface to view source code, current program state, and variable contents.

Uploaded by

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

Online Debugging

The document discusses online debugging in SAP. It describes how the online debugging tool allows users to set breakpoints and watchpoints in ABAP code to debug programs, change field and table values at runtime, and step through code execution. The debugging tool provides an interface to view source code, current program state, and variable contents.

Uploaded by

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

Online Debugging | 3.

14

ONLINE DEBUGGING
March-2005
Objectives
2
The participants will be able to:
Use SAPs online debugger.
Set Breakpoints in ABAP Code.
Select appropriate debugging strategies for correcting programming errors.
Set Watchpoints in ABAP Code.

Online Debugging | 3.14 March-2005


The Online Debugging Tool
3

Online Debugging | 3.14 March-2005


The Online Debugging
4 Display Execution control
buttons.

Click to display
current statement.

The program and the


event the debugger is processing.

Source Code

Online Debugging | 3.14 March-2005


Online Debugging Display
5 Modes Use these buttons
to page through
the code

Online debugging
navigation buttons

Online Debugging | 3.14 March-2005


Displaying Field Contents
6

Buttons for
hexadecimal display

Area for watch variables. User chosen variables can be monitored


here as they change value during execution.

Online Debugging | 3.14 March-2005


Displaying the Contents of an
7 Internal Table

Contents of
internal table

Online Debugging | 3.14 March-2005


Replacing Field Values at
8 Runtime
The change button

Online Debugging | 3.14 March-2005


Changing Internal Tables at
9 Runtime
Initial Values of an Internal Table

Debugger

New Values of an Internal Table

Online Debugging | 3.14 March-2005


Deleting a Row from an
10 Internal Table

The Delete Button

Online Debugging | 3.14 March-2005


Editing a Row of an Internal
11 Table

The Change button

Online Debugging | 3.14 March-2005


Adding a Row to an Internal
12 Table

The Insert and Append Buttons

Online Debugging | 3.14 March-2005


Debugging Strategies
13

Online Debugging | 3.14 March-2005


Using Breakpoints
14

Online Debugging | 3.14 March-2005


Setting Static Breakpoints
15

CASE WORLD_SERIES.
WHEN COLORADO_ROCKIES.
WRITE WORLDS GREATEST TEAM.
WHEN OTHERS.
WRITE MAYBE NEXT YEAR. Setting a static
BREAK-POINT. breakpoint
ENDCASE.

Online Debugging | 3.14 March-2005


Setting Dynamic
16 Breakpoints
Use menu path
to add break
point

Double click
here to add
break point

Online Debugging | 3.14 March-2005


Displaying Dynamic
17 Breakpoints

Double click on the Stop icon to


delete a break-point

Online Debugging | 3.14 March-2005


Setting Breakpoints at
18 Keywords or Events

Menu path to set breakpoint at any


keyword or events

Online Debugging | 3.14 March-2005


Setting Watchpoints
19

Create watchpoint
buttons

Create
watchpoint
screen

Logical Operators to compare watch point variables value

Online Debugging | 3.14 March-2005


Watch points overview
20 screen Button to display
watch point
overview screen

Watch point
change/delete

Logical Operators between


watch points

Online Debugging | 3.14 March-2005


Deleting and Deactivating
21 Breakpoints

Online Debugging | 3.14 March-2005


Deleting and Deactivating
22 Dynamic Breakpoints

Online Debugging | 3.14 March-2005


Debugging Without
23 Breakpoints

Online Debugging | 3.14 March-2005


Releasing the Database
24 During Debugging

Online Debugging | 3.14 March-2005


Summary
25

Online debugging is a valuable tool for diagnosing problems with program


code.
The system fields SY-SUBRC, SY-TABIX and SY-DBCNT are always displayed
in screen.
The debugging tool allows the user to change the content
A breakpoint is a signal within a programs code that tells the ABAP
processor to interrupt the program where the breakpoint is set.
Static breakpoints are generally user-independent.
The system allows a maximum of 30 breakpoints.
Watchpoints are set from the debugging tool.
Watchpoints are used to interrupt a program when there is a change in the
contents of a particular field or field string.
Up to 5 watchpoints can be set at a time.
During debugging, the system normally suppresses the COMMIT which
marks the end of a Logical Unit of Work (LUW).

Online Debugging | 3.14 March-2005

You might also like