Show TOC

Setting Dynamic BreakpointsLocate this document in the navigation structure

Context

You can set dynamic breakpoints. These stop execution whenever a specified token – an ABAP statement or an exception class – is reached.

Procedure

  1. From the menu, choose Start of the navigation path Run Next navigation step ABAP Breakpoints Next navigation step Add Statement Breakpoint End of the navigation path or Start of the navigation path Add Exception Breakpoint End of the navigation path.
  2. If the ABAP project that you are working in is not selected, then choose the project from the dialog that appears.
  3. Choose from the list of ABAP statements. Or enter an ABAP exception class. The function searches incrementally for exception classes as you type.
    Note
    • Alternative way to set a dynamic breakpoint: Open the Debug perspective. From the tool bar of the Breakpoints view, choose Add ABAP Breakpoint.
      Setting dynamic breakpoints in the Breakpoints view
      Figure 1: Dynamic Breakpoints
    • Breakpoint scope: For dynamic breakpoints we recommended keeping the default property Soft breakpoints. Thus only running debug sessions if they have been started for example, using a standard line-breakpoint, will consider this dynamic breakpoints. This allows you to focus on the relevant code area and avoids unwanted debug sessions.
      Setting soft breakpoint in the Breakpoints view
      Figure 2: Soft Breakpoint

Results

You have set a dynamic breakpoint that is active for any program that you run from within the current ABAP project.

You can display and manage dynamic breakpoints from the Breakpoint view in the Debug perspective. In particular, you can change the token that triggers the breakpoint.