Class DebuggerTags.AlwaysHalt

java.lang.Object
com.oracle.truffle.api.instrumentation.Tag
com.oracle.truffle.api.debug.DebuggerTags.AlwaysHalt
Enclosing class:
DebuggerTags

public final class DebuggerTags.AlwaysHalt extends Tag
Marks program locations where debugger should always halt like if on a breakpoint.

TruffleLanguages that support concept similar to JavaScript's debugger statement (program locations where execution should always halt) should make sure that appropriate Nodes are tagged with the DebuggerTags.AlwaysHalt tag.

class DebuggerNode extends Node implements InstrumentableNode {

    public boolean hasTag(Class<? extends Tag> tag) {
        return tag == DebuggerTags.AlwaysHalt.class;
    }
}
All created debugger sessions will suspend on these locations unconditionally.
Since:
0.14