Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 106049

Summary: Add command to show current instruction
Product: [Eclipse Project] JDT Reporter: Timothy Mowlem <tmowlem>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Timothy Mowlem CLA 2005-08-04 10:13:50 EDT
When debugging a complex application with many classes and you pause at a
breakpoint, you move around between classes looking at code, variables, etc, and
it is very easy to forget where the current instruction pointer is located.

A very useful enhancement would be an extra menu command on e.g. the Run menu
which would show the class containing the current instruction and scroll so that
the current instruction is in the middle of the class view.
Comment 1 Darin Wright CLA 2005-08-04 10:17:14 EDT
Simply re-select the top stack frame in the debug view. This will reposition 
the editor.
Comment 2 Timothy Mowlem CLA 2005-08-04 14:57:41 EDT
Darin,

Sorry you're absolutely right. I wasn't sure that if you had previously scrolled out of view that the view 
would snap back when you select it again on the stack frame.

Cheers.

(In reply to comment #0)
> When debugging a complex application with many classes and you pause at a
> breakpoint, you move around between classes looking at code, variables, etc, and
> it is very easy to forget where the current instruction pointer is located.
> 
> A very useful enhancement would be an extra menu command on e.g. the Run menu
> which would show the class containing the current instruction and scroll so that
> the current instruction is in the middle of the class view.