Codota Logo
XDebuggerManager.getDebugSessions
Code IndexAdd Codota 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)

  • 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

@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

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • putExtra (Intent)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Runner (org.openjdk.jmh.runner)
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