Show TOC

AMDP Debugger SettingsLocate this document in the navigation structure

Project-Specific AMDP Settings

To view or change the AMDP Debugger settings, proceed as follows:

  1. Open the debugger preference page. (Choose Start of the navigation path Window Next navigation step Preferences Next navigation step ABAP Development  Next navigation step Debug End of the navigation path).
  2. Choose the link Configure Project Specific Settings... and select the ABAP Project for which you wish to change (view) the debug settings.

On the Debug dialog, you can choose between two Compile in Debug Mode options for the AMDP Debugger:

  • Only procedures containing breakpoints
  • All called procedures
Settings that are relevant for AMDP debugging
Figure 1: Settings that are relevant for AMDP debugging

What’s behind the Compile in Debug Mode settings?

During the execution of AMDPs, every single procedure of the call hierarchy runs either in debug mode or in optimized mode.

  • Optimized mode improves performance by using mechanisms like parallelization, inlining, and others. These optimizations can potentially interfere with debugging. One not quite realistic but simple example would be a read-only procedure without any exporting parameters. Since such a procedure can never have any effect, it is not executed at all in optimized mode and therefore breakpoints within this procedure would not ever be reached.
  • Debug mode will prevent such optimizations. Additionally, only procedures in debug mode will recognize breakpoints that are newly created during an active debug session.

The decision regarding which procedures run in debug mode and which in optimized mode can be influenced by the Compile in Debug Mode setting:

  • Only procedures containing breakpoints: The AMDP Debugger starts quickly, but can have optimization side-effects. (Default, necessary for very large procedures / call hierarchies).
  • All called procedures: No side-effects, but can cause long waiting times for the AMDP Debugger to start up initially. (Recommended for small procedures / call hierarchies).
Useful Preferences for AMDP Debugger

It can be very helpful for you if you work with AMDP classes to highlight those parts of your class that contain embedded AMDP source code. This is not done by default for the source editor so you will have to change the corresponding preference settings.

To change the syntax coloring for AMDP code, proceed as follows:

  1. Open the preferences from the menu bar ( Start of the navigation path Windows Next navigation step Preferences End of the navigation path).
  2. Choose Start of the navigation path General Next navigation step Appearance Next navigation step Colors and Fonts End of the navigation path.
  3. On the Colors and Fonts preferences page, choose tree element ABAP > Syntax Coloring > Embedded Language and assign the color of your choice.
    Syntax coloring for embedded AMDP code
    Figure 2: Syntax coloring for embedded AMDP code