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

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
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • getExternalFilesDir (Context)
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • JCheckBox (javax.swing)
  • JComboBox (javax.swing)
  • JFrame (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top PhpStorm plugins
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