Tony Eichelberger
Tony Eichelberger

Reputation: 7142

Does eclipse have a debugger "step into selected" option that prompts for the method to step into?

I have used IntelliJ Idea on a few projects and I really like the feature it has in the debugger where I can step into a line of code, but choose which of the methods I REALLY want to step into, instead of going through them all until I hit the one I want.

For example, the debugger stops at this line:

String restult = getMyResult(getParam(), buildSomething(), nextOption(x));

I want to hit ctrl+F5 and have a list popup with:

and I can select getMyResult and step into that method while skipping the other three.

It sure miss that feature when I am debugging in eclipse, does anyone know if there is something comparable?

I know about the Step Filtering options in Eclipse, but that is not quite what I want.

Upvotes: 8

Views: 1489

Answers (3)

Oliver Weise
Oliver Weise

Reputation: 66

You can:

  • Select the text of the method call you want to jump into
  • Then right-click into context menu
  • Choose "Step into selection" from there.

Does not work all of the time tho.

Upvotes: 0

bugs_
bugs_

Reputation: 3724

In IntelliJ Idea 10.5
It is called Smart Step Into
In menu it can be found "Run -> Smart Step Into"

Upvotes: -1

Eugene Kuleshov
Eugene Kuleshov

Reputation: 31795

You can simply put a cursor on method you want and hit Ctrl-F5, so no additional selection needed. Alternatively you can use Ctrl+Alt-Clik using mouse do do the same.

Upvotes: 10

Related Questions