Entering content frameProcedure documentation Settings and Warnings Locate the document in its SAP Library structure

 

From the Debugger, you can set the debugging mode and the system behavior in the event of a kernel warning by choosing Settings.

 

System Debugging

If you set this option, the Debugger is also activated for system programs (programs with status S in their program attributes). When you save breakpoints, the System debugging setting is also saved.

 

Update Debugging

Update function modules do not run in the same user session as the program that is currently running in the ABAP Debugger. These function modules are therefore not included in debugging. Only if you select the Update debugging option can you display and debug them after the COMMIT WORK.

 

Always Create Exception Object

The following functions are supported for class-based exceptions:

  1. If the INTO ref addition is missing in the CATCH statement, you can create an exception object in the Debugger by choosing Settings.
  2. As soon as en exception is raised, an appropriate message appears in the status bar of the current screen. Two additional icons appear in the field display screen: Display Exception Object and Statement that Caused the Exception.
  3. When you choose Display Exception Object, the attributes and interfaces of the exception class are displayed together with their contents. The text description key that is assigned to the exception, is displayed as a Quickinfo with the name of the constant that was generated for this key. So, for example, READ_ERROR or WRITE_ERROR is displayed as Quickinfo for the attribute TEXTID with an exception of type CX_SY_FILE_IO, depending on whether the exception occurred while reading or writing.
  4. When you choose Statement that Caused the Exception, the line of the source code containing the statement that caused the exception is displayed. The statement is marked explicitly in the source code.

 

Memory Monitoring

If you choose Settings and check Memory Monitoring or choose Settings ® Memory Monitoring, the system will inspect the roll area of the current modus after every ABAP statement. This allows you to check whether neighboring memory areas have been overwritten.

 

Check Sorting Before READ BINARY SEARCH

If you checked this function, the system checks whether the internal table is sorted before every execution of this statement. If the table is not sorted, a runtime error occurs. However, you should only activate this setting shortly before reaching a relevant point in the source code, because there can be a significant loss in performance, depending on the table size.

 

Check Sorting Before PROVIDE

If this function is selected, the system, during execution of the long form of the PROVIDE statement, checks all the tables involved for sorting and overlapping intervals and not just the area specified with extlim1 and extlim2.

Automation Controller

This Debugger option controls the way in which requests to automation objects (Automation Server and GUI controls) are processed.

1. If the option is not set, the requests are processed as they would normally be in the ABAP program. Requests with the NO FLUSH addition are not processed until

2. If you select this option, all requests are processed synchronously, regardless of any NO FLUSH additions.

This helps you to find errors. If an error occurs when the automation queue is being processed, the synchronous request processing option allows you to identify the request in which the error occurred.

Note

Enabling this option dramatically affects the runtime of the program, since the ABAP program cannot continue processing until the request has been executed by the receiver. You must bear in mind that the receiver – the automation server or control on the presentation server – may be linked using a slow WAN connection.

 

For further information, refer to Structure linkABAP as an OLE Automation Controller.

 

In Background Task: Do not Process

When you debug a program that calls function modules using the IN BACKGROUND TASK addition, they are processed in a background work process (additional internal session). If you set the In background task: Do not process option, the system collects the function calls, but does not start the background work process. The Debugger assigns a transaction ID, which identifies the background work process uniquely. You can now start the Debugger for the background work process using transaction SM58. You can select the function module concerned here, and then execute it via the Edit menu.

 

Runtime Warnings

The profile parameter abap/warnings controls the behavior of the R/3 System when a kernel warning occurs. You can display and change it using Transaction RZ11. The Debugger also allows you to override the default setting of this parameter during your debugging session by choosing one of the following three options:

Note

You can display the last runtime error that occurred by choosing Development ® Display last short dump. You can also use the transaction last_shortdump.

 

Validity of Settings

The settings in the ABAP Debugger have a different validity:

For more details on sessions and user sessions, refer to Modularization Techniques in the ABAP keyword documentation.

Leaving content frame