Java Code Examples for com.intellij.xdebugger.XDebugSession#isPaused()

The following examples show how to use com.intellij.xdebugger.XDebugSession#isPaused() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ResumeAction.java    From consulo with Apache License 2.0 5 votes vote down vote up
@Override
protected boolean isEnabled(AnActionEvent e) {
  Project project = e.getProject();
  if (project == null) return false;

  XDebugSession session = XDebuggerManager.getInstance(project).getCurrentSession();
  if (session != null && !session.isStopped()) {
    return session.isPaused();
  }
  return !ActionPlaces.DEBUGGER_TOOLBAR.equals(e.getPlace());
}
 
Example 2
Source File: XVariablesView.java    From consulo with Apache License 2.0 5 votes vote down vote up
protected void addEmptyMessage(XValueContainerNode root) {
  XDebugSession session = getSession(getPanel());
  if (session != null) {
    if (!session.isStopped() && session.isPaused()) {
      root.setInfoMessage("Frame is not available", null);
    }
    else {
      XDebugProcess debugProcess = session.getDebugProcess();
      root.setInfoMessage(debugProcess.getCurrentStateMessage(), debugProcess.getCurrentStateHyperlinkListener());
    }
  }
}
 
Example 3
Source File: TestConsoleProperties.java    From consulo with Apache License 2.0 4 votes vote down vote up
public boolean isPaused() {
  XDebugSession debuggerSession = XDebuggerManager.getInstance(myProject).getDebugSession(getConsole());
  return debuggerSession != null && debuggerSession.isPaused();
}
 
Example 4
Source File: XDebuggerPauseActionHandler.java    From consulo with Apache License 2.0 4 votes vote down vote up
protected boolean isEnabled(@Nonnull final XDebugSession session, final DataContext dataContext) {
  return !session.isPaused();
}