Tabnine Logo
XDebuggerManager.getDebugSessions
Code IndexAdd Tabnine to your IDE (free)

How to use
getDebugSessions
method
in
com.intellij.xdebugger.XDebuggerManager

Best Java code snippets using com.intellij.xdebugger.XDebuggerManager.getDebugSessions (Showing top 4 results out of 315)

origin: GoogleCloudPlatform/google-cloud-intellij

@NotNull
@VisibleForTesting
Set<RunProfile> getProfilesWithActiveDebugSession(Project project) {
 Set<RunProfile> debuggingProfiles = new HashSet<RunProfile>();
 XDebuggerManager debugManager = XDebuggerManager.getInstance(project);
 for (XDebugSession session : debugManager.getDebugSessions()) {
  if (notStoppedAndHasRunProfile(session)) {
   debuggingProfiles.add(session.getRunProfile());
  }
 }
 return debuggingProfiles;
}
origin: GoogleCloudPlatform/google-cloud-intellij

 private List<CloudDebugProcess> getActiveDebugProcesses(Project project) {

  List<CloudDebugProcess> processes = Lists.newArrayList();

  for (XDebugSession session : XDebuggerManager.getInstance(project).getDebugSessions()) {
   if (session.getDebugProcess() instanceof CloudDebugProcess) {
    processes.add((CloudDebugProcess) session.getDebugProcess());
   }
  }
  return processes;
 }
}
origin: GoogleCloudPlatform/google-cloud-intellij

void createMockXDebuggerManager(Project project, XDebugSession[] value) {
 XDebuggerManager debuggerManager = mock(XDebuggerManager.class);
 when(debuggerManager.getDebugSessions()).thenReturn(value);
 when(project.getComponent(XDebuggerManager.class)).thenReturn(debuggerManager);
}
origin: GoogleCloudPlatform/google-cloud-intellij

private Project createProject(
  int inProgressDebugSessions,
  int backgroundListeningDebugsSessions,
  int notListeningDebugSessions) {
 XDebuggerManager debuggerManager = mock(XDebuggerManager.class);
 XDebugSession[] debugSessions = new XDebugSession[inProgressDebugSessions];
 List<RunnerAndConfigurationSettings> allRunnerSettings =
   new ArrayList<RunnerAndConfigurationSettings>();
 for (int i = 0; i < inProgressDebugSessions; i++) {
  XDebugSession debugSession = createInProgressDebugSettings(allRunnerSettings);
  debugSessions[i] = debugSession;
 }
 when(debuggerManager.getDebugSessions()).thenReturn(debugSessions);
 applicationContainer.unregisterComponent(XDebuggerManager.class.getName());
 registerService(XDebuggerManager.class, debuggerManager);
 for (int i = 0; i < backgroundListeningDebugsSessions; i++) {
  createBackgroundListeningDebugSettings(allRunnerSettings);
 }
 for (int i = 0; i < notListeningDebugSessions; i++) {
  createNotListeningNotActiveSettings(allRunnerSettings);
 }
 RunManager runManager = mock(RunManager.class);
 when(runManager.getAllSettings()).thenReturn(allRunnerSettings);
 applicationContainer.unregisterComponent(RunManager.class.getName());
 registerService(RunManager.class, runManager);
 return project;
}
com.intellij.xdebuggerXDebuggerManagergetDebugSessions

Popular methods of XDebuggerManager

  • getInstance
  • startSession
  • getBreakpointManager

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Best IntelliJ 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