Show TOC

Working with Multiple BreakpointsLocate this document in the navigation structure

Procedure

Setting Breakpoints at Statements

A breakpoint at statement interrupts the program execution immediately before an ABAP statement is processed.

To set a breakpoint at an ABAP statement, perform the following:

  1. Choose Start of the navigation path Breakpoints Next navigation step Breakpoint at Next navigation step Statement... End of the navigation path.

  2. Enter the ABAP statement.

  3. Choose Continue.

    The system sets a breakpoint at all points in the program at which the ABAP statement occurs.

Setting Breakpoints at Subroutines

A breakpoint at subroutine interrupts the program execution immediately before a subroutine is called.

To set a breakpoint at a subroutine, perform the following:

  1. Choose Start of the navigation path Breakpoints Next navigation step Breakpoint at Next navigation step Subroutine... End of the navigation path.

    A dialog box appears.

  2. Enter the name of the subroutine before which you want to interrupt the program.

    By default, the Program field contains the name of the program that is currently active.

  3. Choose Continue.

    The system sets a breakpoint at all points in the program where the subroutine is called.

Setting Breakpoints at Function Module

A breakpoint at function module interrupts the program execution immediately before a function module is called.

To set a breakpoint at a function module, perform the following:

  1. Choose Start of the navigation path Breakpoints Next navigation step Breakpoint at Next navigation step Function Module… End of the navigation path.

  2. Enter the name of the subroutine before which you want to interrupt the program.

    By default, the Program field contains the name of the program that is currently active.

  3. Choose Continue.

    The system sets a breakpoint at all points in the program where the subroutine is called.

Setting Breakpoints at Methods

A breakpoint at method interrupts the program execution immediately before a method is called.

To set a breakpoint at a method, perform the following:

  1. Choose Start of the navigation path Breakpoint Next navigation step Breakpoint at Next navigation step Method... End of the navigation path.

    A dialog box appears.

  2. Enter the name of the method and the class before which you want to interrupt the program.

  3. Choose Continue.

    The system sets a breakpoint at all points in the program where the specified processing block appears.

Setting a Breakpoint at Exceptions

A breakpoint at system exception interrupts the program execution immediately after an exception occurs.

To set a breakpoint at an exception, perform the following:

  1. Choose Start of the navigation path Breakpoints Next navigation step Breakpoint at Next navigation step Exception... End of the navigation path.

    A dialog box appears.

  2. Enter the name of the exception after which you want to interrupt the program.

  3. Choose Continue.

    When an exception is triggered, the system interrupts the program.

Setting Breakpoints at System Exceptions

A breakpoint at system exception interrupts the program execution immediately after a system exception occurs.

To set a breakpoint at a system exception, perform the following:

  1. Choose Start of the navigation path Breakpoint Next navigation step Breakpoint at Next navigation step System exception End of the navigation path.

    The system sets a breakpoint. When a system exception is triggered, a warning appears on the line containing the statement that caused it. If you double-click the Warning, the internal name of the runtime error appears.

Saving Breakpoints

If you would like to quit the debugger you can save the dynamic breakpoints. All breakpoints are retained for restarting the debugging in the same session.

  1. To save all breakpoints, choose Start of the navigation path Breakpoint Next navigation step Save End of the navigation path.

    The system saves all of the breakpoints that you have set in the current program. These breakpoints remain active until you log off from the system.

  2. To delete breakpoints, perform the following:

    • To delete an individual breakpoint, place the cursor on the relevant line and choose Start of the navigation path Breakpoint Next navigation step Create/delete End of the navigation path

    • To delete all existing breakpoints, choose Start of the navigation path Breakpoint Next navigation step Delete all End of the navigation path.