Project-Specific AMDP Settings
To view or change the AMDP Debugger settings, proceed as follows:
- Open the debugger preference page. (Choose ).
- 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
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:
- Open the preferences from the menu bar ( ).
- Choose .
- On the Colors and Fonts preferences page, choose tree element
ABAP > Syntax Coloring >
Embedded Language and assign the color of your
choice.
Figure 2:
Syntax coloring for embedded AMDP code