views:

33

answers:

1

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, ...

+1  A: 

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.

Eugene Kuleshov
Are you sure? I tried both methods on the line `Paths.get("/tmp/nonExistantDirectory/nonExistantFile").createFile();` and the debugger always went immediately into `Paths.get()`.
Steve Emmerson
Positive. I use it all the time. Just hit it few minutes ago.
Eugene Kuleshov
@Steve, you need to have the cursor on createFile() when pressing Ctrl-F5.
Thorbjørn Ravn Andersen
@Thorbjørn, That's it! Thanks!
Steve Emmerson