Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.DebugException


          String message = getExceptionMessage(callback.exception,
              getEvaluateContext().getJsEvaluateContext());
          status = new Status(IStatus.ERROR, ChromiumDebugPlugin.PLUGIN_ID,
              DebugException.TARGET_REQUEST_FAILED, "JavaScript exception: " + message, null);
        }
        throw new DebugException(status);
      }

      value = Value.create(getEvaluateContext(), jsVariable.getValue(), expressionTrackerNode);

      DebugEvent event = new DebugEvent(this, DebugEvent.CHANGE, DebugEvent.CONTENT);
View Full Code Here


      mainThread.fireSuspendEvent(DebugEvent.STEP_END);
    }else mainThread.fireSuspendEvent(DebugEvent.BREAKPOINT);
  }
 
  private void abort(String message, Throwable e) throws DebugException {
    throw new DebugException(new Status(IStatus.ERROR, IXVRConstants.ID_XVR_DEBUG_MODEL, 0, message, e));
  }
View Full Code Here

    }

    public static void log(Throwable t) {
        Throwable top = t;
        if ( t instanceof DebugException ) {
            DebugException de = (DebugException) t;
            IStatus status = de.getStatus();
            if ( status.getException() != null ) {
                top = status.getException();
            }
        }
        log( new Status( IStatus.ERROR,
View Full Code Here

    }

    public static void log(Throwable t) {
        Throwable top = t;
        if ( t instanceof DebugException ) {
            DebugException de = (DebugException) t;
            IStatus status = de.getStatus();
            if ( status.getException() != null ) {
                top = status.getException();
            }
        }
        log( new Status( IStatus.ERROR,
View Full Code Here

        variables = wrapScopes(getEvaluateContext(), stackFrame.getVariableScopes(),
            stackFrame.getReceiverVariable());
      } catch (RuntimeException e) {
        // We shouldn't throw RuntimeException from here, because calling
        // ElementContentProvider#update will forget to call update.done().
        throw new DebugException(new Status(IStatus.ERROR, ChromiumDebugPlugin.PLUGIN_ID,
            "Failed to read variables", e)); //$NON-NLS-1$
      }
    }
    return variables;
  }
View Full Code Here

  public int getExitValue() throws DebugException {
    if (isTerminated()) {
      return 0;
    }
    throw new DebugException(new Status(IStatus.ERROR, ChromiumDebugPlugin.PLUGIN_ID,
        "Process hasn't been terminated yet"))//$NON-NLS-1$
  }
View Full Code Here

      } catch (RuntimeException e) {
        // Log it, because Eclipse is likely to ignore it.
        ChromiumDebugPlugin.log(e);
        // We shouldn't throw RuntimeException from here, because calling
        // ElementContentProvider#update will forget to call update.done().
        throw new DebugException(new Status(IStatus.ERROR, ChromiumDebugPlugin.PLUGIN_ID,
            "Failed to read variables", e)); //$NON-NLS-1$
      }
    }
View Full Code Here

    final EvaluateContext evaluateContext =
        (EvaluateContext) contextImpl.getAdapter(EvaluateContext.class);
    if (evaluateContext == null) {
      listener.watchEvaluationFinished(new BadWatchExpressionResult(
          new DebugException(new Status(Status.ERROR,
              ChromiumDebugUIPlugin.PLUGIN_ID,"Bad debug context")), //$NON-NLS-1$
          expression));
      return;
    }

    evaluateContext.getJsEvaluateContext().evaluateAsync(
        expression, null,
        new JsEvaluateContext.EvaluateCallback() {
          public void success(JsVariable variable) {
            final Variable var = Variable.forRealValue(evaluateContext, variable, false, null);
            listener.watchEvaluationFinished(new GoodWatchExpressionResult(var, expression));
          }

          public void failure(String message) {
            listener.watchEvaluationFinished(new BadWatchExpressionResult(new DebugException(
                createErrorStatus(message == null
                    ? Messages.JsWatchExpressionDelegate_ErrorEvaluatingExpression
                    : message, null)), expression));
            return;
          }
View Full Code Here

    }
    return super.getAdapter(adapter);
  }
 
  protected void abort(String message, Throwable e) throws DebugException {
    throw new DebugException(new Status(IStatus.ERROR, Activator.getBundleID(),  DebugPlugin.INTERNAL_ERROR, message, e));
  }
View Full Code Here

     this breakpoint or the associated marker does not exist
     */
    protected IMarker ensureMarker() throws DebugException {
        IMarker m = getMarker();
        if (m == null || !m.exists()) {
            throw new DebugException(new Status(IStatus.ERROR, DebugPlugin.getUniqueIdentifier(),
                    DebugException.REQUEST_FAILED, "Breakpoint_no_associated_marker", null));
        }
        return m;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.debug.core.DebugException

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.