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

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

Best Java code snippets using com.intellij.xdebugger.XDebugSession.isStopped (Showing top 6 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: GoogleCloudPlatform/google-cloud-intellij

@VisibleForTesting
boolean notStoppedAndHasRunProfile(XDebugSession session) {
 return !session.isStopped() && session.getRunProfile() != null;
}
origin: GoogleCloudPlatform/google-cloud-intellij

 @NotNull
 private XDebugSession createMockSession(boolean isStopped, RunProfile runProfile) {
  XDebugSession debugSession = mock(XDebugSession.class);
  when(debugSession.isStopped()).thenReturn(isStopped);
  if (runProfile != null) {
   when(debugSession.getRunProfile()).thenReturn(runProfile);
  }
  return debugSession;
 }
}
origin: GoogleCloudPlatform/google-cloud-intellij

 @Override
 public void update(AnActionEvent event) {
  event.getPresentation().setEnabled(!CloudDebugProcess.this.getXDebugSession().isStopped());
 }
}
origin: GoogleCloudPlatform/google-cloud-intellij

 @Override
 public void run() {
  if (!getXDebugSession().isStopped()) {
   // Since there is no equivalent metaphor in traditional debug sessions, this simulates
   // the desired behavior of clearing the current context by setting the current
   // position
   // to an empty context
   getXDebugSession().positionReached(new XSuspendContext() {});
  }
 }
});
origin: GoogleCloudPlatform/google-cloud-intellij

private void navigateToBreakpoint(@NotNull Breakpoint target) {
 Date snapshotTime;
 try {
  if (target.getFinalTime() == null) {
   LOG.warn("Could not resolve final time from breakpoint.");
   snapshotTime = new Date();
  } else {
   snapshotTime = ISODateTimeFormat.dateTime().parseDateTime(target.getFinalTime()).toDate();
  }
 } catch (IllegalArgumentException iae) {
  LOG.warn("Could not parse breakpoint timestamp using ISO8601.");
  snapshotTime = new Date();
 }
 DateFormat df = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT);
 currentSnapshot = target;
 if (!getXDebugSession().isStopped()) {
  getXDebugSession()
    .positionReached(
      new MySuspendContext(
        new CloudExecutionStack(
          getXDebugSession().getProject(),
          StackdriverDebuggerBundle.getString(
            "clouddebug.stackat", df.format(snapshotTime)),
          target.getStackFrames(),
          target.getVariableTable(),
          target.getEvaluatedExpressions())));
 }
}
origin: GoogleCloudPlatform/google-cloud-intellij

 && (breakpoint.getStatus() == null
   || !Boolean.TRUE.equals(breakpoint.getStatus().getIsError()))) {
if (!getXDebugSession().isStopped()) {
 getBreakpointHandler().setStateToDisabled(breakpoint);
com.intellij.xdebuggerXDebugSessionisStopped

Popular methods of XDebugSession

  • getProject
  • getRunContentDescriptor
  • positionReached
  • breakpointReached
  • areBreakpointsMuted
  • getRunProfile
  • stop
  • updateBreakpointPresentation
  • getCurrentPosition
  • getCurrentStackFrame
  • getDebugProcess
  • initBreakpoints
  • getDebugProcess,
  • initBreakpoints,
  • sessionResumed,
  • addSessionListener,
  • getConsoleView,
  • getSuspendContext,
  • 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