Package org.eclipse.debug.core.model

Examples of org.eclipse.debug.core.model.IDebugTarget


          }
        }
        if (lineNumber > 0) {
          if (getValidPosition(document, lineNumber) != -1) {
            if (target instanceof IAdaptable) {
              IDebugTarget debugTarget = (IDebugTarget) ((IAdaptable) target)
                  .getAdapter(IDebugTarget.class);
              if (debugTarget != null) {
                IFile file = getFile(textEditor);
                // TODO: we need a to call a debugger specific
                // api, so an extension point is
View Full Code Here


            if (view == null)
              return;
            try {
              // build the tree path
              // LaunchManager->Launch->DebugTarget->PHPThread->PHPStackFrame
              IDebugTarget target = currentLaunches[0]
                  .getDebugTarget();
              if (target == null)
                return;
              if (target.getThreads() == null
                  || target.getThreads().length == 0)
                return;
              IThread thread = target.getThreads()[0];
              IStackFrame frame = thread.getTopStackFrame();
              if (frame == null)
                return;
              Object[] segments = new Object[5];
              segments[0] = DebugPlugin.getDefault()
View Full Code Here

        errorGobbler.start();
        inputGobbler.start();
      }
      int exitValue = process.waitFor();
      IDebugTarget debugTarget = launch.getDebugTarget();
      if (debugTarget != null) {
        IProcess p = debugTarget.getProcess();
        if (p instanceof PHPProcess) {
          ((PHPProcess) p).setExitValue(exitValue);
        }
      }
View Full Code Here

      }
    }

    Iterator targets = getDebugTargets0().iterator();
    while (targets.hasNext()) {
      IDebugTarget target = (IDebugTarget) targets.next();
      if (!(target.isTerminated() || target.isDisconnected())) {
        return false;
      }
    }

    return true;
View Full Code Here

              MessageFormat.format(JDIDebugBreakpointMessages.ConditionalBreakpointHandler_1, value.getReferenceTypeName()));
          // result was not boolean
          fireConditionHasRuntimeErrors(fBreakpoint, new DebugException(status));
          return SUSPEND;
        }
        IDebugTarget debugTarget = thread.getDebugTarget();
        IValue lastValue = fBreakpoint
            .setCurrentConditionValue(debugTarget, value);
        if (!value.equals(lastValue)) {
          return SUSPEND;
        }
View Full Code Here

   * @return whether the given object has a debug target that supports heap
   *         walking
   */
  public static boolean supportsHeapWalking(Object object) {
    if (object instanceof IDebugElement) {
      IDebugTarget target = ((IDebugElement) object).getDebugTarget();
      if (target instanceof IJavaDebugTarget) {
        return ((IJavaDebugTarget) target).supportsInstanceRetrieval();
      } else if (target != null) {
        Object adapter = target.getAdapter(IJavaDebugTarget.class);
        if (adapter instanceof IJavaDebugTarget) {
          return ((IJavaDebugTarget) adapter).supportsInstanceRetrieval();
        }
      }
    }
View Full Code Here

              value);
      if (stackFrame != null) {
        return stackFrame;
      }
    }
    IDebugTarget target = value.getDebugTarget();
    IJavaDebugTarget javaTarget = (IJavaDebugTarget) target
        .getAdapter(IJavaDebugTarget.class);
    if (javaTarget != null) {
      IThread[] threads = javaTarget.getThreads();
      for (IThread thread : threads) {
        if (thread.isSuspended()) {
View Full Code Here

TOP

Related Classes of org.eclipse.debug.core.model.IDebugTarget

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.