/** * Steps into the given method in the given stack frame * @param frame the frame in which the step should begin * @param method the method to step into * @throws DebugException */ private void doStepIn(IJavaStackFrame frame, IMethod method) throws DebugException { // ensure top stack frame IStackFrame tos = frame.getThread().getTopStackFrame(); if (tos == null) { return; } if (!tos.equals(frame)) { showErrorMessage(ActionMessages.StepIntoSelectionActionDelegate_Step_into_selection_only_available_in_top_stack_frame__3); return; } StepIntoSelectionHandler handler = new StepIntoSelectionHandler((IJavaThread)frame.getThread(), frame, method); handler.step(); }
public Object handleStatus(IStatus status, Object source) { if (source instanceof IDebugElement) { IDebugElement element = (IDebugElement) source; IJavaDebugTarget target = (IJavaDebugTarget) element.getDebugTarget().getAdapter(IJavaDebugTarget.class); if (target != null) { IJavaStackFrame frame = EvaluationContextManager.getEvaluationContext((IWorkbenchWindow)null); if (frame != null && frame.getDebugTarget().equals(target)) { return frame.getThread(); } } } return null; }
/** * Ask to evaluate the expression in the context of the given stack frame. * * The evaluation is performed asynchronously. A change debug event, with * this as the source, is fired when the evaluation is completed. * * @param javaStackFrame the stack frame in the context of which performed * the evaluation. */ protected void doEvaluation(IJavaStackFrame javaStackFrame) { IJavaThread thread = (IJavaThread)javaStackFrame.getThread(); if (preEvaluationCheck(thread)) { thread.queueRunnable(new EvaluationRunnable(javaStackFrame)); } else { fListener.watchEvaluationFinished(null); } }
IJavaThread thread = (IJavaThread)stackFrame.getThread(); if (thread.isPerformingEvaluation()) { reportError(ActionMessages.EvaluateAction_Cannot_perform_nested_evaluations__1);
IJavaStackFrame frame= (IJavaStackFrame) adaptable.getAdapter(IJavaStackFrame.class); if (frame != null) { IJavaThread thread = (IJavaThread) frame.getThread(); IJavaProject project= getProject(frame); if (project != null) {
IJavaThread thread = null; if (frame != null) { thread = (IJavaThread) frame.getThread();
engine.evaluate(expression, stackFrame, EvaluateAction.this, DebugEvent.EVALUATION, hitBreakpoints); } else { engine.evaluate(expression, object, (IJavaThread)stackFrame.getThread(), EvaluateAction.this, DebugEvent.EVALUATION, hitBreakpoints);
int stackDepth = frame.getThread().getStackFrames().length; String name = null; if (frame.isConstructor()) {
IJavaStackFrame frame = (IJavaStackFrame) ((IAdaptable)firstElement).getAdapter(IJavaStackFrame.class); if (frame != null) { IJavaThread thread = (IJavaThread)frame.getThread(); try { if (frame.equals(thread.getTopStackFrame())) {
} else { runToLineBeforeStepIn(textSelection, frame.getThread(), method); return;