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

Bug 501708

Summary: Step into major method call
Product: [Eclipse Project] JDT Reporter: Marvin Fröhlich <eclipse>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Marvin Fröhlich CLA 2016-09-19 07:40:51 EDT
Let's consider the following method call.

myMethod( getValue0(), getValue1(), getValue2(), getValue3() );

If I debug this code and want to step into the method, I have to step into all argument method calls first as there is no step-into-major-method-call or something. This can be very annoying and a little time consuming and confusing.

It would be very helpful to have an action to step into the "major" method call, but step over the argument method calls.

This might look a little random. Why shouldn't I want to step into getValue2() and step over the others? Well, this is just a very common use case.
Comment 1 Michael Rennie CLA 2016-09-19 14:01:39 EDT
There are a few features that can help you out here:

1. Step Into Selection (Ctrl + F5) - will skip all the method calls and step directly into myMethod (assuming you have it selected / caret in its name)

2. hyperlink debugging - hold down the Ctrl+Alt keys and click the name of the method

3. Depending on what the get* methods do, we have step filters built in that can bet turned on to ignore simple getter and setter style methods. Open Preferences > Java > Debug > Step Filters and enable filtering and the 'simple getters' and 'simple getters' options at the bottom.
Comment 2 Marvin Fröhlich CLA 2016-09-20 05:11:28 EDT
Thank you very much. Your solution 1 works perfectly.

It may be an option to add a shortcut to step into the major method call as described. But this is definitely a solution.