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


Java DebugEvent.STEP_OVER属性代码示例

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


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

示例1: handleResumeEvent

private void handleResumeEvent(DebugEvent event) {
	switch (event.getDetail()) {
	case DebugEvent.STEP_INTO:
		TrackingEventManager.addEvent(
				new DebugEventBase(TrackingEventType.STEP_INTO, new Date()));
		break;
	case DebugEvent.STEP_OVER:
		TrackingEventManager.addEvent(
				new DebugEventBase(TrackingEventType.STEP_OVER, new Date()));
		break;
	case DebugEvent.STEP_RETURN:
		TrackingEventManager.addEvent(
				new DebugEventBase(TrackingEventType.STEP_OUT, new Date()));
		break;
	case DebugEvent.CLIENT_REQUEST:
		TrackingEventManager.addEvent(new DebugEventBase(
				TrackingEventType.RESUME_CLIENT, new Date()));
		break;
	}
}
 
开发者ID:TestRoots,项目名称:watchdog,代码行数:20,代码来源:DebugEventListener.java

示例2: calcDetail

private int calcDetail(String reason) {
	if (reason.equals("breakpoint")) { //$NON-NLS-1$
		return DebugEvent.BREAKPOINT;
	} else if (reason.equals("step")) { //$NON-NLS-1$
		return DebugEvent.STEP_OVER;
		// } else if (reason.equals("exception")) { //$NON-NLS-1$
		// return DebugEvent.STEP_RETURN;
	} else if (reason.equals("pause")) { //$NON-NLS-1$
		return DebugEvent.CLIENT_REQUEST;
		// } else if (reason.equals("event")) { //$NON-NLS-1$
		// return DebugEvent.BREAKPOINT;
	} else {
		return DebugEvent.UNSPECIFIED;
	}
}
 
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:15,代码来源:DSPDebugTarget.java

示例3: getStepDetail

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

示例4: processThreadRun

/**
 * ThreadRun event processing
 */
private void processThreadRun(String payload) {
    try {
        Tuple<String, String> threadIdAndReason = getThreadIdAndReason(payload);
        int resumeReason = DebugEvent.UNSPECIFIED;
        try {
            int raw_reason = Integer.parseInt(threadIdAndReason.o2);
            if (raw_reason == AbstractDebuggerCommand.CMD_STEP_OVER) {
                resumeReason = DebugEvent.STEP_OVER;
            } else if (raw_reason == AbstractDebuggerCommand.CMD_STEP_RETURN) {
                resumeReason = DebugEvent.STEP_RETURN;
            } else if (raw_reason == AbstractDebuggerCommand.CMD_STEP_INTO
                    || raw_reason == AbstractDebuggerCommand.CMD_STEP_CAUGHT_EXCEPTION) {
                resumeReason = DebugEvent.STEP_INTO;
            } else if (raw_reason == AbstractDebuggerCommand.CMD_RUN_TO_LINE) {
                resumeReason = DebugEvent.UNSPECIFIED;
            } else if (raw_reason == AbstractDebuggerCommand.CMD_SET_NEXT_STATEMENT) {
                resumeReason = DebugEvent.UNSPECIFIED;
            } else if (raw_reason == AbstractDebuggerCommand.CMD_THREAD_RUN || raw_reason == -1) {
                resumeReason = DebugEvent.CLIENT_REQUEST;
            } else {
                PydevDebugPlugin.log(IStatus.ERROR,
                        "Unexpected resume reason code: " + raw_reason + " payload: " + payload, null);
                resumeReason = DebugEvent.UNSPECIFIED;
            }
        } catch (NumberFormatException e) {
            // expected, when pydevd reports "None"
            resumeReason = DebugEvent.UNSPECIFIED;
        }

        String threadID = threadIdAndReason.o1;
        PyThread t = findThreadByID(threadID);
        if (t != null) {
            t.setSuspended(false, null);
            fireEvent(new DebugEvent(t, DebugEvent.RESUME, resumeReason));

        } else {
            FastStringBuffer buf = new FastStringBuffer();
            for (PyThread thread : threads) {
                if (buf.length() > 0) {
                    buf.append(", ");
                }
                buf.append("id: " + thread.getId());
            }
            String msg = "Unable to find thread: " + threadID +
                    " available: " + buf;
            PydevDebugPlugin.log(IStatus.ERROR, msg, new RuntimeException(msg));
        }
    } catch (CoreException e1) {
        Log.log(e1);
    }

}
 
开发者ID:fabioz,项目名称:Pydev,代码行数:55,代码来源:AbstractDebugTarget.java


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