Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Select which method to "Step Into" in debugger

Netbeans has a nice "Step Into" feature where if there are multiple method calls on the same line, you can use the arrow keys to choose which one you meant. You can see a screenshot and description on this new and noteworthy page.

I am wondering, does Eclipse have the same feature? I see that Eclipse does have Step Filtering, but that's not the same. I prefer not to F5, F7, F5, ...

like image 216
Brian Harris Avatar asked Oct 14 '10 16:10

Brian Harris


People also ask

What is step into in debugging?

Debugger executes the program statement by statement. The debugger will execute the function body if the statement is a function call (a new execution context appears in the “call stack” tab). Otherwise, the debugger will continue to the following statement, just like the “Step Over” action.

How do you debug a method?

1.4. To debug your application, select a Java file with a main method. Right-click on it and select Debug As Java Application. If you started an application once via the context menu, you can use the created launch configuration again via the Debug button in the Eclipse toolbar.

What's the shortcut to step outside a method when debugging?

F11/Shift+F11 ⮕ Step into/out This shortcut is to step into the breakpoint or step out of it. It starts the execution or ends the execution of the current breakpoint.


1 Answers

Eclipse had it for ages. While debugger is stopped on a break point, put cursor on a method you want to step into and then use Run menu / Step Into Selection (Ctrl-F5) or just Ctrl+Alt-Click on that method in the editor.

like image 75
Eugene Kuleshov Avatar answered Oct 30 '22 20:10

Eugene Kuleshov