Class StepConfig

java.lang.Object
com.oracle.truffle.api.debug.StepConfig

public final class StepConfig extends Object
Represents a debugger step configuration. A debugger step is defined by it's depth and a set of additional properties. The step depth is specified by a usage of one of the appropriate prepare methods on SuspendedEvent. The set of additional step properties is defined by this class. These are a step count and a list of source elements the step can suspend at.

The rules of stepping through the source elements are following:

  • SourceElement.STATEMENT: steps suspend before guest language statements, unless the step returns to a calling location, in which case they suspend after. Step depth is interpreted based on pushed stack frames.
  • SourceElement.EXPRESSION: steps suspend before and after guest language expressions. Step depth is interpreted based on both pushed stack frames and expression nesting hierarchy.
Since:
0.33
  • Method Details

    • newBuilder

      public static StepConfig.Builder newBuilder()
      Create a new step configuration builder.
      Since:
      0.33