Show TOC

Setting Dynamic BreakpointsLocate this document in the navigation structure

Context

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

Procedure

  1. From the main 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 yet clear, 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.

Results

Note
  • Alternative way to set a dynamic breakpoint: Open the Debug perspective. From the tool bar of the Breakpoints view, choose ABAP Breakpoints.
  • Breakpoint scope: To have the breakpoint apply to any program that you start or that runs under your name, unmark Restrict to running debuggers. If you want to apply the breakpoint only to a program that you are already debugging, then mark Restrict to running debuggers.

You have set a dynamic breakpoint that is active for any program that you run in the current ABAP project. The breakpoint applies whether you start the program directly or the program is started under your user indirectly, by an HTTP request, for example.

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

You can also change the scope of a dynamic breakpoint by changing the setting of Restrict to running debuggers. If marked, the breakpoint is only valid in a program that you already debugging. If unmarked, the breakpoint applies to all programs that are started under your user name.