Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.DebugException


        return bp.getCurrentBreakpoint() != null;
    }
   
    private void assertSuspended() throws DebugException
    {
        if (!isSuspended()) throw new DebugException(
            new Status(
                Status.ERROR,
                PerlDebugPlugin.getUniqueIdentifier(),
                Status.OK,
                "This action only works when the debugger is suspended",
View Full Code Here


        }
    }
   
    void throwDebugException(IOException e) throws DebugException
    {
        throw new DebugException(new Status(
            IStatus.ERROR,
            PerlDebugPlugin.getUniqueIdentifier(),
            IStatus.OK,
            "An error occurred during communication with the debugger process",
            e));
View Full Code Here

        return false;
    }
   
    private void throwNotSupported() throws DebugException
    {
        throw new DebugException(new Status(
            Status.ERROR,
            PerlDebugPlugin.getUniqueIdentifier(),
            DebugException.NOT_SUPPORTED,
            "Operation not supported",
            null));
View Full Code Here

                    r.nextEntity()));
        }
        catch (Exception e)
        {
            PerlDebugPlugin.log(e);
            throw new DebugException(new Status(
                Status.ERROR,
                PerlDebugPlugin.getUniqueIdentifier(),
                Status.OK,
                "An error occurred while dumping array content; " +
                "contents of the Variables view may become invalid",
View Full Code Here

            }
        }
        catch (Exception e)
        {
            PerlDebugPlugin.log(e);
            throw new DebugException(new Status(
                Status.ERROR,
                PerlDebugPlugin.getUniqueIdentifier(),
                Status.OK,
                "An error occurred while dumping array content; " +
                "contents of the Variables view may become invalid",
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() {
          @Override
          public void success(ResultOrException result) {
            ValueBase valueBase = result.accept(new ResultOrException.Visitor<ValueBase>() {
              @Override public ValueBase visitResult(JsValue value) {
                return Value.create(evaluateContext, value,
                    ExpressionTracker.createExpressionNode(expression));
              }
              @Override
              public ValueBase visitException(JsValue exception) {
                return new ValueBase.ErrorMessageValue(evaluateContext, "<abnormal return>",
                    exception);
              }
            });
            listener.watchEvaluationFinished(new GoodWatchExpressionResult(valueBase, expression));
          }

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

        variables = wrapScopes(getEvaluateContext(), stackFrame.getVariableScopes(),
            stackFrame.getReceiverVariable(), ExpressionTracker.STACK_FRAME_FACTORY);
      } 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

      } 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

        String message = getExceptionMessage(newValueOrException.getException(),
            getEvaluateContext().getJsEvaluateContext());
        Status status = new Status(IStatus.ERROR, ChromiumDebugPlugin.PLUGIN_ID,
            DebugException.TARGET_REQUEST_FAILED,
            "JavaScript compile exception: " + message, null);
        throw new DebugException(status);
      } else {
        setValue(newValueOrException.getResult());
      }
    }
View Full Code Here

        return callback.resultOrException;
      }

      Status status = new Status(IStatus.ERROR, ChromiumDebugPlugin.PLUGIN_ID,
          DebugException.TARGET_REQUEST_FAILED, "Failed to execute remote command", callback.cause);
      throw new DebugException(status);
    }
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.