Java Code Examples for com.intellij.xdebugger.breakpoints.XBreakpoint#isEnabled()

The following examples show how to use com.intellij.xdebugger.breakpoints.XBreakpoint#isEnabled() . 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: DartExceptionBreakpointHandler.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@NotNull
public static ExceptionPauseMode getBreakOnExceptionMode(@NotNull XDebugSession session,
                                                         @Nullable final XBreakpoint<DartExceptionBreakpointProperties> bp) {
  if (session.areBreakpointsMuted()) {
    return ExceptionPauseMode.None;
  }
  if (bp == null) return ExceptionPauseMode.Unhandled; // Default to breaking on unhandled exceptions.
  if (!bp.isEnabled()) return ExceptionPauseMode.None;
  return bp.getProperties().isBreakOnAllExceptions() ? ExceptionPauseMode.All : ExceptionPauseMode.Unhandled;
}
 
Example 2
Source File: DartExceptionBreakpointHandler.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@NotNull
public static ExceptionPauseMode getBreakOnExceptionMode(@NotNull XDebugSession session,
                                                         @Nullable final XBreakpoint<DartExceptionBreakpointProperties> bp) {
  if (session.areBreakpointsMuted()) {
    return ExceptionPauseMode.None;
  }
  if (bp == null) return ExceptionPauseMode.Unhandled; // Default to breaking on unhandled exceptions.
  if (!bp.isEnabled()) return ExceptionPauseMode.None;
  return bp.getProperties().isBreakOnAllExceptions() ? ExceptionPauseMode.All : ExceptionPauseMode.Unhandled;
}
 
Example 3
Source File: ToggleBreakpointGutterIconAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
ToggleBreakpointGutterIconAction(XBreakpoint<?> breakpoint) {
  super(breakpoint.isEnabled() ? XDebuggerBundle.message("xdebugger.disable.breakpoint.action.text") : XDebuggerBundle.message("xdebugger.enable.breakpoint.action.text"));
  this.myBreakpoint = breakpoint;
}