congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
XDebuggerManager.getBreakpointManager
Code IndexAdd Tabnine to your IDE (free)

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

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

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

@NotNull
private CloudDebugProcess mockCloudDebugProcess(
  XBreakpointManager breakpointManager, XDebugSession debugSession) {
 Project project = mock(Project.class);
 when(debugSession.getProject()).thenReturn(project);
 XDebuggerManager debuggerManager = mock(XDebuggerManager.class);
 when(project.getComponent(XDebuggerManager.class)).thenReturn(debuggerManager);
 when(debuggerManager.getBreakpointManager()).thenReturn(breakpointManager);
 return spy(new CloudDebugProcess(debugSession));
}
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: GoogleCloudPlatform/google-cloud-intellij

when(debuggerManager.getBreakpointManager()).thenReturn(breakpointManager);
origin: GoogleCloudPlatform/google-cloud-intellij

project.addComponent(XDebuggerManager.class, debuggerManager);
breakpointManager = mock(XBreakpointManager.class);
when(debuggerManager.getBreakpointManager()).thenReturn(breakpointManager);
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

final XBreakpointManager manager =
  XDebuggerManager.getInstance(process.getXDebugSession().getProject())
    .getBreakpointManager();
if (serverBreakpoint.getLocation() == null) {
 continue;
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

final XBreakpointManager manager =
  XDebuggerManager.getInstance(process.getXDebugSession().getProject())
    .getBreakpointManager();
if (serverBreakpoint.getLocation() == null) {
 LOG.warn(
com.intellij.xdebuggerXDebuggerManagergetBreakpointManager

Popular methods of XDebuggerManager

  • getInstance
  • startSession
  • getDebugSessions

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (Timer)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now