Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

  • getMyresult()
  • getParam()
  • buildSomething()
  • nextOption()

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.

like image 644
Tony Eichelberger Avatar asked Sep 29 '10 21:09

Tony Eichelberger


People also ask

Does Eclipse have an interactive debugger?

The console in Eclipse is interactive, when a running application reads from the Console Input Stream. It is not meant to be a feature of Eclipse to generally aid in debugging, it is meant to allow console based Java applications to read input from the user when debugging (as in I can type into a console prompt).

What is the difference between debug and run in Eclipse?

When you're debugging, Eclipse will stop at breakpoints and allow other debugging actions (view running threads, etc.). When you run, it won't. If you start by selecting "Run", you can later attach the debugger through the Device view. That will switch to "Debug" mode.


1 Answers

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.

like image 117
Eugene Kuleshov Avatar answered Nov 09 '22 10:11

Eugene Kuleshov