Package org.eclipse.php.internal.debug.core.xdebug.dbgp

Examples of org.eclipse.php.internal.debug.core.xdebug.dbgp.DBGpBreakpoint


    }

    if (supportsBreakpoint(breakpoint)) {
      try {
        if (breakpoint.isEnabled()) {
          DBGpBreakpoint bp = bpFacade
              .createDBGpBreakpoint(breakpoint);
          if (isSuspended() || (asyncSupported && isRunning())) {
            // we are suspended or async mode is supported and we
            // are running, so send the breakpoint.
            if (DBGpLogger.debugBP()) {
View Full Code Here


   * org.eclipse.debug.core.IBreakpointListener#breakpointRemoved(org.eclipse
   * .debug.core.model.IBreakpoint, org.eclipse.core.resources.IMarkerDelta)
   */
  public void breakpointRemoved(IBreakpoint breakpoint, IMarkerDelta delta) {
    if (supportsBreakpoint(breakpoint)) {
      DBGpBreakpoint bp = bpFacade.createDBGpBreakpoint(breakpoint);
      if (isSuspended() || (asyncSupported && isRunning())) {

        // aysnc mode and running or we are suspended so send the remove
        // request
        if (DBGpLogger.debugBP()) {
          DBGpLogger
              .debug("Immediately removing of breakpoint with ID: " + bp.getID()); //$NON-NLS-1$
        }
        sendBreakpointRemoveCmd(bp, false);
      } else if (isRunning()) {

        // running and not suspended and no async support, so we must
        // defer the removal.
        if (DBGpLogger.debugBP()) {
          DBGpLogger
              .debug("Deferring Removing of breakpoint with ID: " + bp.getID()); //$NON-NLS-1$
        }
        DBGpBreakpointCmd bpRemove = new DBGpBreakpointCmd(
            DBGpCommand.breakPointRemove, bp);
        queueBpCmd(bpRemove);
      }
View Full Code Here

    int lineNumber = marker.getAttribute(IMarker.LINE_NUMBER, 0);
    if (supportsBreakpoint(breakpoint)) {
      try {

        // did the condition change ?
        DBGpBreakpoint bp = bpFacade.createDBGpBreakpoint(breakpoint);
        if (bp.hasConditionChanged()) {
          if (DBGpLogger.debugBP()) {
            DBGpLogger
                .debug("condition changed for breakpoint with ID: " + bp.getID()); //$NON-NLS-1$
          }
          bp.resetConditionChanged();
          if (breakpoint.isEnabled()) {
            breakpointRemoved(breakpoint, null);
          } else {
            return;
          }
        }

        // did the line number change ?
        if (lineNumber != deltaLNumber) {
          if (DBGpLogger.debugBP()) {
            DBGpLogger
                .debug("line number changed for breakpoint with ID: " + bp.getID()); //$NON-NLS-1$
          }

          if (breakpoint.isEnabled()) {
            breakpointRemoved(breakpoint, null);
          } else {
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.debug.core.xdebug.dbgp.DBGpBreakpoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.