Examples of DebuggerContext


Examples of org.eclim.plugin.jdt.command.debug.context.DebuggerContext

{
  @Override
  public Object execute(CommandLine commandLine)
    throws Exception
  {
    DebuggerContext ctx = DebuggerContextManager.getDefault();
    return ctx != null ? ctx.getStatus() : null;
  }
View Full Code Here

Examples of org.eclim.plugin.jdt.command.debug.context.DebuggerContext

  @Override
  public Object execute(CommandLine commandLine)
    throws Exception
  {
    DebuggerContext ctx = DebuggerContextManager.getDefault();
    if (ctx == null) {
      return Services.getMessage("debugging.session.absent");
    }

    ThreadContext threadCtx = ctx.getThreadContext();
    String threadIdStr = commandLine.getValue(Options.THREAD_ID_OPTION);
    long threadId;

    if (threadIdStr == null) {
      ctx.resume();
      return Services.getMessage("debugging.session.resumed");
    } else {
      // Select the currently stepping thread if an empty thread ID is given.
      if (threadIdStr.isEmpty()) {
        IJavaThread steppingThread = (IJavaThread) threadCtx.getSteppingThread();
View Full Code Here

Examples of org.eclim.plugin.jdt.command.debug.context.DebuggerContext

    String projectName = commandLine.getValue(Options.PROJECT_OPTION);
    String vimInstanceId = commandLine.getValue(Options.VIM_INSTANCE_OPTION);
    String host = commandLine.getValue(Options.HOST_OPTION);
    int port = commandLine.getIntValue(Options.PORT_NUMBER_OPTION);

    DebuggerContext ctx = new DebuggerContext(
        ProjectUtils.getProject(projectName), host, port, vimInstanceId);

    DebuggerContextManager.add(ctx);
    // Start context only after adding to context manager. There are other
    // classes that lookup the context once the context is started and events
    // are fired.
    ctx.start();

    return Services.getMessage("debugging.session.started");
  }
View Full Code Here

Examples of org.eclim.plugin.jdt.command.debug.context.DebuggerContext

{
  @Override
  public Object execute(CommandLine commandLine)
    throws Exception
  {
    DebuggerContext ctx = DebuggerContextManager.getDefault();
    if (ctx == null) {
      return null;
    }

    String valueId = commandLine.getValue(Options.VARIABLE_VALUE_ID_OPTION);
    if (valueId == null) {
      return null;
    }

    return ctx.getVariableView().getDetail(Long.parseLong(valueId));
  }
View Full Code Here

Examples of org.eclim.plugin.jdt.command.debug.context.DebuggerContext

{
  @Override
  public Object execute(CommandLine commandLine)
    throws Exception
  {
    DebuggerContext ctx = DebuggerContextManager.getDefault();
    if (ctx == null) {
      return Services.getMessage("debugging.session.absent");
    }

    String threadId = commandLine.getValue(Options.THREAD_ID_OPTION);
    if (threadId == null) {
      ctx.suspend();
      return Services.getMessage("debugging.session.suspended");
    } else {
      ctx.getThreadContext().suspend(Long.parseLong(threadId));
      return Services.getMessage("debugging.thread.suspended");
    }
  }
View Full Code Here

Examples of org.eclim.plugin.jdt.command.debug.context.DebuggerContext

{
  @Override
  public Object execute(CommandLine commandLine)
    throws Exception
  {
    DebuggerContext ctx = DebuggerContextManager.getDefault();
    if (ctx == null) {
      return Services.getMessage("debugging.session.absent");
    }

    ctx.stop();
    DebuggerContextManager.remove(ctx.getId());
    return Services.getMessage("debugging.session.stopped");
  }
View Full Code Here

Examples of org.eclim.plugin.jdt.command.debug.context.DebuggerContext

{
  @Override
  public Object execute(CommandLine commandLine)
    throws Exception
  {
    DebuggerContext ctx = DebuggerContextManager.getDefault();
    if (ctx == null) {
      return null;
    }

    String valueId = commandLine.getValue(Options.VARIABLE_VALUE_ID_OPTION);
    if (valueId == null) {
      return null;
    }

    return ctx.getVariableView().expandValue(Long.parseLong(valueId));
  }
View Full Code Here

Examples of org.eclim.plugin.jdt.command.debug.context.DebuggerContext

    for (DebugEvent event : events) {
      JDIDebugElement src = (JDIDebugElement) event.getSource();
      int kind = event.getKind();
      int detail = event.getDetail();

      DebuggerContext ctx = DebuggerContextManager.getDefault();
      if (ctx == null) {
        if (logger.isDebugEnabled()) {
          logger.debug("No debugging session present");
        }
        return;
View Full Code Here

Examples of org.eclim.plugin.jdt.command.debug.context.DebuggerContext

  @Override
  public Object execute(CommandLine commandLine)
    throws Exception
  {
    DebuggerContext ctx = DebuggerContextManager.getDefault();
    ThreadContext threadCtx = ctx.getThreadContext();

    String threadId = commandLine.getValue(Options.THREAD_ID_OPTION);
    IJavaThread steppingThread = null;
    if (threadId == null) {
      steppingThread = threadCtx.getSteppingThread();
View Full Code Here

Examples of org.mvel2.debug.DebuggerContext

  /**
   * Ensures that debugger context exists.
   */
  private static void ensureDebuggerContext() {
    if (debuggerContext == null) debuggerContext = new ThreadLocal<DebuggerContext>();
    if (debuggerContext.get() == null) debuggerContext.set(new DebuggerContext());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.