当前位置: 首页>>代码示例>>Java>>正文


Java StepRequest.STEP_INTO属性代码示例

本文整理汇总了Java中com.sun.jdi.request.StepRequest.STEP_INTO属性的典型用法代码示例。如果您正苦于以下问题:Java StepRequest.STEP_INTO属性的具体用法?Java StepRequest.STEP_INTO怎么用?Java StepRequest.STEP_INTO使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.sun.jdi.request.StepRequest的用法示例。


在下文中一共展示了StepRequest.STEP_INTO属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: contextAction

public void contextAction() {
  showStatusText(DebuggerBundle.message("status.step.into"));
  final SuspendContextImpl suspendContext = getSuspendContext();
  final ThreadReferenceProxyImpl stepThread = getContextThread();
  final RequestHint hint = mySmartStepFilter != null?
                           new RequestHint(stepThread, suspendContext, mySmartStepFilter) :
                           new RequestHint(stepThread, suspendContext, StepRequest.STEP_INTO);
  if (myForcedIgnoreFilters) {
    try {
      mySession.setIgnoreStepFiltersFlag(stepThread.frameCount());
    }
    catch (EvaluateException e) {
      LOG.info(e);
    }
  }
  hint.setIgnoreFilters(myForcedIgnoreFilters || mySession.shouldIgnoreSteppingFilters());
  applyThreadFilter(stepThread);
  doStep(suspendContext, stepThread, StepRequest.STEP_INTO, hint);
  super.contextAction();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:20,代码来源:DebugProcessImpl.java

示例2: contextAction

@Override
public void contextAction() {
  showStatusText(DebuggerBundle.message("status.step.into"));
  final SuspendContextImpl suspendContext = getSuspendContext();
  final ThreadReferenceProxyImpl stepThread = getContextThread();
  final RequestHint hint = mySmartStepFilter != null?
                           new RequestHint(stepThread, suspendContext, mySmartStepFilter) :
                           new RequestHint(stepThread, suspendContext, StepRequest.STEP_INTO);
  hint.setResetIgnoreFilters(mySmartStepFilter != null && !mySession.shouldIgnoreSteppingFilters());
  if (myForcedIgnoreFilters) {
    try {
      mySession.setIgnoreStepFiltersFlag(stepThread.frameCount());
    }
    catch (EvaluateException e) {
      LOG.info(e);
    }
  }
  hint.setIgnoreFilters(myForcedIgnoreFilters || mySession.shouldIgnoreSteppingFilters());
  applyThreadFilter(stepThread);
  if (myBreakpoint != null) {
    myBreakpoint.setSuspendPolicy(suspendContext.getSuspendPolicy() == EventRequest.SUSPEND_EVENT_THREAD? DebuggerSettings.SUSPEND_THREAD : DebuggerSettings.SUSPEND_ALL);
    myBreakpoint.createRequest(suspendContext.getDebugProcess());
    setRunToCursorBreakpoint(myBreakpoint);
  }
  doStep(suspendContext, stepThread, myStepSize, StepRequest.STEP_INTO, hint);
  super.contextAction();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:27,代码来源:DebugProcessImpl.java

示例3: handleEvent

@Override
public boolean handleEvent(final Event event, final JDIDebugTarget target,
    final boolean suspendVote, final EventSet eventSet)
{
  final StepEvent stepEvent = (StepEvent) event;
  if (isActive())
  {
    jdiHandler.jdiStep(stepEvent);
  }
  boolean result = true;
  final JDTStepHandler stepHandler = getPendingStepHandler();
  if (stepHandler != null)
  {
    switch (stepHandler.getStepKind())
    {
      case StepRequest.STEP_INTO:
        if (shouldHandleStepInto(stepEvent.location()))
        {
          result = stepHandler.handleEvent(event, target, suspendVote, eventSet);
        }
        break;
      case StepRequest.STEP_OVER:
        if (shouldHandleStepOver(stepEvent.location()))
        {
          result = stepHandler.handleEvent(event, target, suspendVote, eventSet);
        }
        break;
      case StepRequest.STEP_OUT:
        if (shouldHandleStepReturn(stepEvent.location()))
        {
          result = stepHandler.handleEvent(event, target, suspendVote, eventSet);
        }
        break;
      default:
        // TODO log error
        break;
    }
  }
  return result;
}
 
开发者ID:UBPL,项目名称:jive,代码行数:40,代码来源:JiveThread.java

示例4: RequestHint

public RequestHint(final ThreadReferenceProxyImpl stepThread, final SuspendContextImpl suspendContext, @NotNull MethodFilter methodFilter) {
  this(stepThread, suspendContext, StepRequest.STEP_LINE, StepRequest.STEP_INTO, methodFilter);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:RequestHint.java

示例5: getDepth

@MagicConstant (intValues = {StepRequest.STEP_INTO, StepRequest.STEP_OVER, StepRequest.STEP_OUT})
public int getDepth() {
  return myDepth;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:RequestHint.java

示例6: RequestHint

public RequestHint(final ThreadReferenceProxyImpl stepThread, final SuspendContextImpl suspendContext, @NotNull SmartStepFilter smartStepFilter) {
  this(stepThread, suspendContext, StepRequest.STEP_INTO, smartStepFilter);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:3,代码来源:RequestHint.java

示例7: getStepKind

@Override
protected int getStepKind()
{
  return StepRequest.STEP_INTO;
}
 
开发者ID:UBPL,项目名称:jive,代码行数:5,代码来源:JiveThread.java


注:本文中的com.sun.jdi.request.StepRequest.STEP_INTO属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。