Elide GraalVM25.6.0-elide.4
All types
Versions and modules

DebugStackTraceElement

Javaclassin com.oracle.truffle.api.debugsince 19.0

public final class DebugStackTraceElement
Inheritance
  1. Object
  2. DebugStackTraceElement

Represents a trace element in the guest language stack trace. A guest language trace element consists of a name, the current source location and scopes containing local variables and arguments.

The difference between this class and DebugStackFrame is the limited life-time of DebugStackFrame, that is associated with a SuspendedEvent.

Methods6

boolean isInternal()

isInternal

since 19.0
public boolean isInternal()

Returns whether this trace element is a language implementation artifact.

The decision to mark a method as internal is language-specific, reflects judgments about tool usability, and is subject to change.

Returns

boolean
No description.
boolean isHost()

isHost

since 20.3
public boolean isHost()

Returns true if this element is a host element. Host elements provide stack trace element, have no scope, and no source section.

Host elements are provided only when host info is set to true.

Returns

boolean
No description.
StackTraceElement getHostTraceElement()

getHostTraceElement

since 20.3
public StackTraceElement getHostTraceElement()

Provides a host element. Returns the host stack trace element if and only if this is host element.

Returns

StackTraceElement
the host stack trace element, or null when not a host element.

See also

String getName()

getName

since 19.0
public String getName()

A description of the trace element. If the language does not provide such a description then null is returned.

Returns

String
No description.
SourceSection getSourceSection()

getSourceSection

since 19.0
public SourceSection getSourceSection()

Returns the source section location of this trace element. The source section is null if the source location is not available.

Returns

SourceSection
No description.
DebugScope getScope()

getScope

since 19.0
public DebugScope getScope()

Get the current inner-most scope. The scope might not provide valid information if the execution path diverges from this trace element.

Returns

DebugScope
the scope, or null when no language is associated with this frame location, or when no local scope exists.

Inherited members