congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
com.oracle.truffle.api.debug
Code IndexAdd Tabnine to your IDE (free)

How to use com.oracle.truffle.api.debug

Best Java code snippets using com.oracle.truffle.api.debug (Showing top 20 results out of 315)

origin: org.graalvm.truffle/truffle-api

@Override
boolean step(DebuggerSession steppingSession, EventContext context, SuspendAnchor suspendAnchor) {
  boolean hit = current.step(steppingSession, context, suspendAnchor);
  if (hit) {
    if (current == last) {
      return true;
    } else {
      current = current.next;
      current.initialize(SuspendedContext.create(context, steppingSession.getDebugger().getEnv()), suspendAnchor);
    }
  }
  return false;
}
origin: org.graalvm.truffle/truffle-api

  @Override
  public SuspendedContext get() {
    return SuspendedContext.create(source.getContext(), debugger.getEnv());
  }
});
origin: org.graalvm.truffle/truffle-api

@Override
protected void onEnter(VirtualFrame frame) {
  if (stepping.get()) {
    doEnter();
    if (hasRootElement) {
      super.onEnter(frame);
    }
  }
}
origin: com.oracle.truffle/truffle-api

Debugger(Env env) {
  this.env = env;
  this.msgNodes = new ObjectStructures.MessageNodes();
  this.alwaysHaltBreakpoint = new Breakpoint(BreakpointLocation.ANY, SuspendAnchor.BEFORE, false, null);
  this.alwaysHaltBreakpoint.setEnabled(true);
}
origin: com.oracle.truffle/truffle-api

final LanguageInfo resolveLanguage() {
  LanguageInfo languageInfo;
  if (preferredLanguage != null) {
    languageInfo = preferredLanguage;
  } else if (getScope() != null && getScope().getLanguage() != null) {
    languageInfo = getScope().getLanguage();
  } else {
    languageInfo = getOriginalLanguage();
  }
  return languageInfo;
}
origin: com.oracle.truffle/truffle-api

/**
 * Returns <code>true</code> if the underlying guest language source location is denoted as the
 * source element.
 *
 * @param sourceElement the source element to check, must not be <code>null</code>.
 * @since 0.33
 */
public boolean hasSourceElement(SourceElement sourceElement) {
  return context.hasTag(sourceElement.getTag());
}
origin: org.graalvm.truffle/truffle-api

/**
 * Test if the language context of the source of the event is initialized.
 *
 * @since 0.26
 */
public boolean isLanguageContextInitialized() {
  verifyValidState(true);
  return context.isLanguageContextInitialized();
}
origin: org.graalvm.truffle/truffle-api

@Override
public void onContextClosed(TruffleContext context) {
  DebugContextsListener l = contextsListener;
  if (l != null) {
    DebugContext dc = getCachedDebugContext(context);
    l.contextClosed(dc);
  }
}
origin: com.oracle.truffle/truffle-api

@Override
public void onLanguageContextInitialized(TruffleContext context, LanguageInfo language) {
  DebugContextsListener l = contextsListener;
  if (l != null) {
    DebugContext dc = getCachedDebugContext(context);
    l.languageContextInitialized(dc, language);
  }
}
origin: com.oracle.truffle/truffle-api

private SuspendedContext getContext() {
  SuspendedContext context = event.getContext();
  if (context == null) {
    // there is a race condition here if the event
    // got disposed between the parent verifyValidState and getContext.
    // if the context is null we assume the event got disposed so we re-check
    // the disposed flag. return null should therefore not be reachable.
    verifyValidState(true);
    assert false : "should not be reachable";
  }
  return context;
}
origin: com.oracle.truffle/truffle-api

AbstractBreakpointNode(Breakpoint breakpoint, EventContext context) {
  super(context);
  this.breakpoint = breakpoint;
  initializeSessions();
  this.conditionExistsUnchanged = breakpoint.getConditionExistsUnchanged();
  if (breakpoint.condition != null) {
    this.breakCondition = new ConditionalBreakNode(context, breakpoint);
  }
}
origin: com.oracle.truffle/truffle-api

@Override
public void onThreadInitialized(TruffleContext context, Thread thread) {
  DebugThreadsListener l = threadsListener;
  if (l != null) {
    DebugContext dc = getCachedDebugContext(context);
    l.threadInitialized(dc, thread);
  }
}
origin: com.oracle.truffle/truffle-api

@Override
public void onLanguageContextFinalized(TruffleContext context, LanguageInfo language) {
  DebugContextsListener l = contextsListener;
  if (l != null) {
    DebugContext dc = getCachedDebugContext(context);
    l.languageContextFinalized(dc, language);
  }
}
origin: com.oracle.truffle/truffle-api

@Override
public void onThreadDisposed(TruffleContext context, Thread thread) {
  DebugThreadsListener l = threadsListener;
  if (l != null) {
    DebugContext dc = getCachedDebugContext(context);
    l.threadDisposed(dc, thread);
  }
}
origin: org.graalvm.truffle/truffle-api

/**
 * Returns the guest language source section of the AST node before/after the execution is
 * suspended. Returns <code>null</code> if no source section information is available.
 * <p>
 * This method is thread-safe.
 *
 * @since 0.17
 */
public SourceSection getSourceSection() {
  verifyValidState(true);
  return session.resolveSection(sourceSection);
}
origin: org.graalvm.truffle/truffle-api

void resetReportedException() {
  if (haveReportedExceptions.get()) {
    doResetReportedException();
  }
}
origin: org.graalvm.truffle/truffle-api

Debugger(Env env) {
  this.env = env;
  this.msgNodes = new ObjectStructures.MessageNodes();
  this.alwaysHaltBreakpoint = new Breakpoint(BreakpointLocation.ANY, SuspendAnchor.BEFORE);
  this.alwaysHaltBreakpoint.setEnabled(true);
}
origin: org.graalvm.truffle/truffle-api

/**
 * Returns <code>true</code> if the underlying guest language source location is denoted as the
 * source element.
 *
 * @param sourceElement the source element to check, must not be <code>null</code>.
 * @since 0.33
 */
public boolean hasSourceElement(SourceElement sourceElement) {
  return context.hasTag(sourceElement.getTag());
}
origin: com.oracle.truffle/truffle-api

/**
 * Test if the language context of the source of the event is initialized.
 *
 * @since 0.26
 */
public boolean isLanguageContextInitialized() {
  verifyValidState(true);
  return context.isLanguageContextInitialized();
}
origin: com.oracle.truffle/truffle-api

@Override
public void onContextClosed(TruffleContext context) {
  DebugContextsListener l = contextsListener;
  if (l != null) {
    DebugContext dc = getCachedDebugContext(context);
    l.contextClosed(dc);
  }
}
com.oracle.truffle.api.debug

Most used classes

  • Breakpoint$Builder
    Builder implementation for a new Breakpoint.
  • Breakpoint
    A request that guest language program execution be suspended at specified locations on behalf of a d
  • Debugger
    Class that simplifies implementing a debugger on top of Truffle. Primarily used to implement debuggi
  • DebuggerSession
    Represents a single debugging session of a Debugger.SESSION LIFETIME * A debugging client Debugger#
  • SuspendedCallback
    Callback invoked whenever the Debugger suspends for a particular DebuggerSession.
  • DebugStackFrame,
  • Breakpoint$AbstractBreakpointNode,
  • Breakpoint$BreakpointAfterNode,
  • Breakpoint$BreakpointBeforeNode,
  • Breakpoint$BreakpointConditionFailure,
  • Breakpoint$BreakpointNodeFactory,
  • Breakpoint$ConditionalBreakNode,
  • Breakpoint$GlobalBreakpoint,
  • Breakpoint$ResolveListener,
  • BreakpointLocation,
  • DebugContext,
  • DebugContextsListener,
  • DebugScope,
  • DebugStackFrame$1
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now