Class StepConfig.Builder
java.lang.Object
com.oracle.truffle.api.debug.StepConfig.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Create astep configurationfrom this builder.count(int count) Provide the step count.sourceElements(SourceElement... elements) Provide a list ofSourceElements that are enabled for the step.suspendAnchors(SourceElement element, SuspendAnchor... anchors) Provide a list ofSuspendAnchors for individualSourceElements.
-
Method Details
-
sourceElements
Provide a list ofSourceElements that are enabled for the step. It must be a subset ofSourceElements enabled inDebuggerSessionwhich the step is prepared for. At least one source element needs to be provided and can only be invoked once per builder. When not called, by default all source elements enabled in the debugger session are also enabled for the step.- Parameters:
elements- a non-empty list of source elements- Since:
- 0.33
-
suspendAnchors
Provide a list ofSuspendAnchors for individualSourceElements. By default, following suspend anchors are applied:
This method can be called repeatedly to override the defaults.SourceElementSuspendAnchorsROOTBEFORE,AFTERSTATEMENTBEFOREEXPRESSIONBEFORE,AFTER- Parameters:
element- the element to set the suspend anchor foranchors- a list of suspend anchors- Since:
- 19.0
-
count
Provide the step count. It specifies the number of times the step repeats itself before it suspends the execution. Can only be invoked once per builder.- Throws:
IllegalArgumentException- ifcount <= 0- Since:
- 0.33
-
build
-