Package com.oracle.truffle.api.debug
Class StepConfig.Builder
java.lang.Object
com.oracle.truffle.api.debug.StepConfig.Builder
- Enclosing class:
StepConfig
Builder of
StepConfig
.- Since:
- 0.33
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create astep configuration
from this builder.count
(int count) Provide the step count.sourceElements
(SourceElement... elements) Provide a list ofSourceElement
s that are enabled for the step.suspendAnchors
(SourceElement element, SuspendAnchor... anchors) Provide a list ofSuspendAnchor
s for individualSourceElement
s.
-
Method Details
-
sourceElements
Provide a list ofSourceElement
s that are enabled for the step. It must be a subset ofSourceElement
s enabled inDebuggerSession
which 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 ofSuspendAnchor
s for individualSourceElement
s. By default, following suspend anchors are applied:SourceElement
SuspendAnchor
sROOT
BEFORE
,AFTER
STATEMENT
BEFORE
EXPRESSION
BEFORE
,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
Create astep configuration
from this builder.- Since:
- 0.33
-