Show TOC

Syntax for Breakpoint ConditionsLocate this document in the navigation structure

Breakpoint conditions have one or more operands. These can be:

  • Variables (including special debugger symbols)

  • Literals

  • Built-in debugger functions

Syntax

The condition syntax allowed in breakpoint conditions is basically a subset of what is allowed in ABAP logical expressions, such as an IF statement.

You can specify elementary logical expressions (for example, SY-SUBRC = 0) and combine them using the keyword AND, OR.

In addition, you can change the order of valuation by using brackets - as you are familiar with from logical expressions in ABAP.

Similar to ABAP, you can also make use of short-circuit evaluation semantics, just like in the in the following example:

oref is bound and oref->attr = ‘abc’

The second elementary logical expression oref->attr = ‘abc’ is evaluated only if the first expression oref is bound has been evaluated to true.

Examples for Valid Conditions
  • sy-index > 5

  • sy-index = sy-tabix

  • lines( itab ) > 0

  • lines( itab ) <> sy-tabix

  • lines( itab ) < lines( itab2 )

  • strlen( s ) >= sy-index

  • INEXACT_DF = 'X'

  • oref is bound and oref->attr = 'abc'

  • 'DEADBEEF' cs 'BEEF' and sy-fdpos = 4

  • a > b AND (c > b OR c > d)