Package org.eclipse.php.internal.debug.core.model

Examples of org.eclipse.php.internal.debug.core.model.DebugOutput


    }
    stackFrames = null;
    currentVariables = null;
    superGlobalVars = null;
    // clear any previous debug output object and create a new one.
    debugOutput = new DebugOutput();

    session.startSession();

    // we are effectively suspended once the session has handshaked until we
    // run
View Full Code Here


  public void addDebugTarget(DBGpTarget target) {
    synchronized (debugTargets) {
      if (debugTargets.size() == 0) {
        // this is the first target, so clear out any old debug output
        // and set up new information.
        debugOutput = new DebugOutput();
      }
      debugTargets.add(target);
    }
  }
View Full Code Here

        .createNewStructuredDocument();
    Object input = dd;
    if (fTarget != null) {
      if ((fTarget.isSuspended()) || (fTarget.isTerminated())
          || (fTarget.isWaiting())) {
        DebugOutput outputBuffer = fTarget.getOutputBuffer();
        fUpdateCount = outputBuffer.getUpdateCount();

        // check if output hasn't been updated
        if (fTarget == oldTarget && fUpdateCount == oldcount)
          return;

        String output = outputBuffer.toString();
        dd.setText(this, output);
      } else {
        // Not Suspended or Terminated

        // the following is a fix for bug
View Full Code Here

    if (swtBrowser != null && !swtBrowser.isDisposed()) {
      IPHPDebugTarget oldTarget = fTarget;
      int oldcount = fUpdateCount;
      fTarget = target;

      DebugOutput debugOutput = null;
      if (fTarget != null) {
        if ((fTarget.isSuspended()) || (fTarget.isTerminated())
            || fTarget.isWaiting()) {
          debugOutput = fTarget.getOutputBuffer();
          fUpdateCount = debugOutput.getUpdateCount();

          // check if output hasn't been updated
          if (fTarget == oldTarget && fUpdateCount == oldcount) {
            return;
          }
        } else {
          // Not Suspended or Terminated

          // the following is a fix for bug
          // https://bugs.eclipse.org/bugs/show_bug.cgi?id=205688
          // if the target is not suspended or terminated fTarget
          // should get back its old value
          // so that in the next time the function is called it will
          // not consider this target
          // as it was already set to the view
          fTarget = oldTarget;
          return;
        }
      }

      if (debugOutput != null) {
        String contentType = debugOutput.getContentType();
        if (contentType != null && !contentType.startsWith("text")) { //$NON-NLS-1$
          return; // we don't show garbage anymore
        }
        String output = debugOutput.toString();
        // Skip headers
        int startIdx = output.indexOf("\r\n\r\n"); //$NON-NLS-1$
        if (startIdx == -1) {
          startIdx = output.indexOf("\r\n"); //$NON-NLS-1$
        }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.debug.core.model.DebugOutput

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.