Codota Logo
XDebuggerManager.getInstance
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using com.intellij.xdebugger.XDebuggerManager.getInstance (Showing top 15 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: go-lang-plugin-org/go-lang-idea-plugin

return XDebuggerManager.getInstance(env.getProject()).startSession(env, new XDebugProcessStarter() {
 @NotNull
 @Override
origin: ballerina-platform/ballerina-lang

  ((BallerinaApplicationRunningState) state).setDebugPort(port);
  return XDebuggerManager.getInstance(env.getProject()).startSession(env, new XDebugProcessStarter() {
  ((BallerinaTestRunningState) state).setDebugPort(port);
  return XDebuggerManager.getInstance(env.getProject()).startSession(env, new XDebugProcessStarter() {
} else if (state instanceof BallerinaRemoteRunningState) {
  FileDocumentManager.getInstance().saveAllDocuments();
  return XDebuggerManager.getInstance(env.getProject()).startSession(env, new XDebugProcessStarter() {
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

@VisibleForTesting
XBreakpointManager getXBreakpointManager(Project project) {
 return XDebuggerManager.getInstance(project).getBreakpointManager();
}
origin: Camelcade/Perl5-IDEA

 @Override
 protected void processBreakPoint(@NotNull XLineBreakpoint breakpoint, XDebugSession session) {
  XDebuggerManager.getInstance(session.getProject()).getBreakpointManager().updateBreakpointPresentation(
   breakpoint,
   AllIcons.Debugger.Db_invalid_breakpoint,
   "You can't set a breakpoint here"
  );
 }
}
origin: Camelcade/Perl5-IDEA

 @Override
 protected void processBreakPoint(@NotNull XLineBreakpoint breakpoint, XDebugSession session) {
  XDebuggerManager.getInstance(session.getProject()).getBreakpointManager().updateBreakpointPresentation(
   breakpoint,
   AllIcons.Debugger.Db_verified_breakpoint,
   "Breakpoint set"
  );
 }
}
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: Camelcade/Perl5-IDEA

 @Override
 protected RunContentDescriptor doExecute(@NotNull final RunProfileState state, @NotNull final ExecutionEnvironment env)
  throws ExecutionException {
  FileDocumentManager.getInstance().saveAllDocuments();
  XDebugSession xDebugSession = XDebuggerManager.getInstance(env.getProject()).startSession(env, new XDebugProcessStarter() {
   @NotNull
   @Override
   public XDebugProcess start(@NotNull XDebugSession session) throws ExecutionException {
    return new PerlDebugProcess(session, (PerlDebugProfileStateBase)state,
                  state.execute(env.getExecutor(), PerlDebuggerProgramRunner.this));
   }
  });
  return xDebugSession.getRunContentDescriptor();
 }
}
origin: Camelcade/Perl5-IDEA

@Override
public void stop() {
 myDebugThread.setStop();
 ApplicationManager.getApplication().runReadAction(
  () -> {
   XBreakpointManager breakpointManager = XDebuggerManager.getInstance(getSession().getProject()).getBreakpointManager();
   Collection<? extends XLineBreakpoint<PerlLineBreakpointProperties>> breakpoints =
    breakpointManager.getBreakpoints(PerlLineBreakpointType.class);
   for (XLineBreakpoint<PerlLineBreakpointProperties> breakpoint : breakpoints) {
    breakpointManager.updateBreakpointPresentation(breakpoint, null, null);
   }
  }
 );
}
origin: intellij-dlanguage/intellij-dlanguage

final XDebugSession debugSession = XDebuggerManager.getInstance(project).startSession(env,
  new XDebugProcessStarter() {
    @NotNull
origin: Camelcade/Perl5-IDEA

@Nullable
public static XLineBreakpoint findBreakpoint(final Project project, final PerlDebuggingEventBreakpoint breakpointBase) {
 final XLineBreakpoint[] result = new XLineBreakpoint[]{null};
 ApplicationManager.getApplication().runReadAction(() -> {
  String path = breakpointBase.getPath();
  VirtualFile virtualFile;
  String virtualFileUrl;
  virtualFile = VfsUtil.findFileByIoFile(new File(breakpointBase.getDebugThread().getDebugProfileState().mapPathToLocal(path)), true);
  if (virtualFile == null) {
   virtualFileUrl = PerlRemoteFileSystem.PROTOCOL_PREFIX + path;
  }
  else {
   virtualFileUrl = virtualFile.getUrl();
  }
  Collection<? extends XLineBreakpoint<PerlLineBreakpointProperties>> breakpoints =
   XDebuggerManager.getInstance(project).getBreakpointManager().getBreakpoints(PerlLineBreakpointType.class);
  for (XLineBreakpoint<PerlLineBreakpointProperties> breakpoint : breakpoints) {
   if (StringUtil.equals(breakpoint.getFileUrl(), virtualFileUrl) && breakpoint.getLine() == breakpointBase.getLine()) {
    result[0] = breakpoint;
    return;
   }
  }
 });
 return result[0];
}
origin: GoogleCloudPlatform/google-cloud-intellij

XDebuggerManager.getInstance(environment.getProject())
  .startSession(
    environment,
origin: GoogleCloudPlatform/google-cloud-intellij

  XDebuggerManager.getInstance(process.getXDebugSession().getProject())
    .getBreakpointManager();
if (serverBreakpoint.getLocation() == null) {
origin: GoogleCloudPlatform/google-cloud-intellij

@Override
public void stop() {
 getStateController().stopBackgroundListening();
 RunProfile profile = getXDebugSession().getRunProfile();
 if (profile instanceof CloudDebugRunConfiguration) {
  ((CloudDebugRunConfiguration) profile).setProcessState(processState);
 }
 getRepositoryValidator().restoreToOriginalState(getXDebugSession().getProject());
 XBreakpointManager breakpointManager =
   XDebuggerManager.getInstance(getXDebugSession().getProject()).getBreakpointManager();
 for (XBreakpoint bp : breakpointManager.getAllBreakpoints()) {
  com.intellij.debugger.ui.breakpoints.Breakpoint cloudBreakpoint =
    BreakpointManager.getJavaBreakpoint(bp);
  if (!(cloudBreakpoint instanceof CloudLineBreakpointType.CloudLineBreakpoint)) {
   continue;
  }
  CloudLineBreakpointType.CloudLineBreakpoint cloudLineBreakpoint =
    (CloudLineBreakpointType.CloudLineBreakpoint) cloudBreakpoint;
  cloudLineBreakpoint.setVerified(false);
  cloudLineBreakpoint.setErrorMessage(null);
  updateBreakpointPresentation(cloudLineBreakpoint);
 }
}
origin: GoogleCloudPlatform/google-cloud-intellij

  XDebuggerManager.getInstance(process.getXDebugSession().getProject())
    .getBreakpointManager();
if (serverBreakpoint.getLocation() == null) {
com.intellij.xdebuggerXDebuggerManagergetInstance

Popular methods of XDebuggerManager

  • startSession
  • getBreakpointManager
  • getDebugSessions

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Table (org.hibernate.mapping)
    A relational table
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