congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
XDebugSession.getSuspendContext
Code IndexAdd Tabnine 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)

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

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Best plugins for Eclipse
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