Starting the Debugger 

There are two possible strategies for starting the Debugger in the ABAP Workbench:

Setting Breakpoints

A breakpoint is a signal in a line of code that tells the ABAP runtime processor to interrupt the program at that line and start the ABAP Debugger. Breakpoints are useful when you want to analyze a program further in the following cases:

For further information about the different types of breakpoints and how to use them, refer to the Breakpoints section.

Running a Program in Debugging Mode

You can start the Debugger without previously having set breakpoints. This is the best procedure to use when you want to test a program right from the beginning. You can also use it to debug a transaction starting with the first PBO module. It is also useful if you do not know the program very well and therefore are not sure where best to set breakpoints.

You can start the Debugger as follows:

From the Object Navigator

Select a program and choose Test/Execute from the Development Object menu. The Choose Execution Type dialog box appears. Choose Debugging

From the initial screen of the ABAP Editor

Choose Program ® Execute ® Debugging (or the Debugging pushbutton).

From any screen

Choose System ® Utilities ® Debug ABAP.

From any screen

Enter " /h " in the command field.

 

Checking System Programs for Errors

To check a program or program component that is part of the ABAP Workbench (for example, the Screen Painter), you must use the system Debugger. To start the system Debugger, choose System ® Utilities ® Debug system from any screen.

To stop the system Debugger, choose Debugger ® Debugging off.