Codota Logo
XDebugSession.getSuspendContext
Code IndexAdd Codota to your IDE (free)

How to use
getSuspendContext
method
in
com.intellij.xdebugger.XDebugSession

Best Java code snippets using com.intellij.xdebugger.XDebugSession.getSuspendContext (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: ballerina-platform/ballerina-lang

XSuspendContext context = getSession().getSuspendContext();
if (context == null) {
  context = new BallerinaSuspendContext(BallerinaDebugProcess.this, message);
origin: ballerina-platform/ballerina-lang

@Override
public void stop() {
  // If we don't call this using the executeOnPooledThread(), the UI will hang until the debug server is stopped.
  ApplicationManager.getApplication().executeOnPooledThread(() -> {
    XDebugSession session = getSession();
    if (!isRemoteDebugMode) {
      XSuspendContext suspendContext = session.getSuspendContext();
      if (suspendContext != null) {
        XExecutionStack activeExecutionStack = suspendContext.getActiveExecutionStack();
        if (activeExecutionStack instanceof BallerinaSuspendContext.BallerinaExecutionStack) {
          String workerID = ((BallerinaSuspendContext.BallerinaExecutionStack) activeExecutionStack)
              .getMyWorkerID();
          if (workerID != null) {
            myConnector.sendCommand(Command.STOP, workerID);
          }
        }
      } else {
        session.stop();
        return;
      }
    } else {
      myConnector.sendCommand(Command.STOP);
      session.stop();
      getSession().getConsoleView().print("Disconnected from the debug server.\n",
          ConsoleViewContentType.SYSTEM_OUTPUT);
    }
    isDisconnected = true;
    myConnector.close();
  });
}
com.intellij.xdebuggerXDebugSessiongetSuspendContext

Popular methods of XDebugSession

  • getProject
  • getRunContentDescriptor
  • positionReached
  • breakpointReached
  • areBreakpointsMuted
  • getRunProfile
  • stop
  • updateBreakpointPresentation
  • getCurrentPosition
  • getCurrentStackFrame
  • getDebugProcess
  • initBreakpoints
  • getDebugProcess,
  • initBreakpoints,
  • isStopped,
  • sessionResumed,
  • addSessionListener,
  • getConsoleView,
  • getUI,
  • resume

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now