本文整理汇总了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;
}
}
示例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;
}
}
示例3: getStepDetail
@Override
protected int getStepDetail()
{
return DebugEvent.STEP_OVER;
}
示例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);
}
}