ABAP Debugging
ABAP Debugging
By /h method
Let us see how the initial screen of a debugger looks like
Fields
The scrollable field display contains the contents of up to eight fields. The
contents of the three most important system fields are always displayed.
This is the default display mode in the Debugger.
Table
Displays the contents of an internal table. This mode allows you to display
and edit the entries in an internal table.
Breakpoints
A scrollable display containing up to 30 breakpoints. Next to each
breakpoint is a counter. You can also delete breakpoints in this display.
Watch points
You can set a watchpoint for a field so that the program is interrupted
whenever the value of that field changes. This display mode contains a
list of watchpoints, the fields and programs to which they are assigned,
the current values of the fields, and the conditions upon which the
watchpoint is activated.
Calls
This mode displays the current sequence of events, and the sequence of
calls up to the current breakpoint. The last active call is displayed at the
top of the list; previous calls are listed in reverse chronological order.
When an event (for example, START-OF-SELECTION) concludes, it is
deleted from the display.
Overview
This mode displays the structure of the program. It lists its events,
subroutines, and modules, and shows which sections belong to which
events. It also displays the section currently being processed.
Settings
This mode displays the current Debugger settings. You can change the
settings by selecting or deselecting various options
Other Display Modes
There are other display modes, which you can access using the Goto
menu:
Single field
Displays the contents and technical attributes of a field
Structured field
Displays the components of a structure, along with their contents and
attributes. If you double-click a component, the system displays detailed
information for it (see Single field above).
Object
Displays the structure of an object in ABAP Objects.
Breakpoint
Static Dynamic
At At At function At system
statement Event module exceptions
You leave the debugger and all your dynamic breakpoints are lost .
But , you want to retain them to use them after you do some other
work and then again enter into debugger mode for the program
within the same terminal session .
If this is the case , then you have to save the breakpoints .
All you have to do is follows the menu path : Breakpoint-->Save .
Changing Watchpoints
In debugger , follow menu path : Go to-->Control Debugging-->
Watchpoints or press the Watchpoint pushbutton at the top of the screen
.
A list of watchpoints will be shown in tabular display .
To change the watchpoint , choose the Change pushbutton with pencil icon
for the watchpoint . To delete it , press the Delete pushbutton for the
watchpoint with garbage icon .
Pushbuttons for Program Execution in Debugger
Continue
Single Step Execute Return Display List
(till cursor)