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

Bug 332065

Summary: Add ability to step over chunks of code without adding a breakpoint
Product: [Eclipse Project] Platform Reporter: Pudas <pudas.jriest>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: curtis.windatt.public, pwebster
Version: 4.1   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Pudas CLA 2010-12-07 13:28:33 EST
Build Identifier: 

Presently while debugging, in order to skip over a chunk of code and stop immediately after it (a while loop for example) you need to either keep hitting step, or put a breakpoint after the chunk of code that you would like to skip over and click resume.  

I propose a context menu option 'Resume to here', (perhaps available on the margin of the editor, or in the editor itself when execution is paused).  The user would click on the first line of code after the block of code that he/she wishes to skip (in fact anywhere after the present frame location) and invoke the option. This would cause resuming and stopping at the location in question.  The breakpoint would never be seen in 'breakpoints' or really exist except maybe under the hood. Perhaps it created and automatically removed when the option is invoked.

Kind of a temporary breakpoint, without having to ever create the breakpoint.

Reproducible: Always

Steps to Reproduce:
1.na
Comment 1 Curtis Windatt CLA 2010-12-07 13:36:34 EST
This is already available in the Run To Line action.

See RunToLineActionDelegate in org.eclipse.debug.ui