コード例 #1
0
  /**
   * Add an exception breakpoint for the given class which should be a subclass of Throwable. The
   * emode parameters indicates when the breakpoint should be triggered (i.e. when the caught or
   * uncaught exceptions).
   */
  @Override
  public void addExceptionBreakpoint(
      String proj, String cls, BumpExceptionMode emode, BumpBreakMode mode) {
    if (mode == BumpBreakMode.DEFAULT) mode = break_mode;
    if (emode == BumpExceptionMode.DEFAULT) emode = exception_mode;

    bump_client.addExceptionBreakpoint(
        proj, cls, emode.isCaught(), emode.isUncaught(), mode.isSuspendVm());
  }
コード例 #2
0
  /** Add a breakpoint at the give line of the given file. The class is optional. */
  @Override
  public void addLineBreakpoint(String proj, File file, String cls, int line, BumpBreakMode mode) {
    if (mode == BumpBreakMode.DEFAULT) mode = break_mode;

    bump_client.addLineBreakpoint(proj, file, cls, line, mode.isSuspendVm(), mode.isTrace());
  }