Features

Smart Step Into for Anonymous Classes and Lambdas in IntelliJ IDEA 13

If you are a heavy user of the debugger in IntelliJ IDEA, likely you know how powerful it is, especially with its Smart Step Into action. This action is helpful when you’re at a line and want to step into a particular method but not the first one which will be invoked. You press Shift + F7, and the IDE offers you a list of all methods available at the current line, so you can quickly choose the one you need.

Now imagine that you have an anonymous class as an argument and you’d like to stop if one of its methods is invoked at the current line. Is there anything your favorite IDE can help you with?

Of course there is. In IntelliJ IDEA 13, the Smart Step Into action will offer you methods from anonymous classes as well.

If you have more than one anonymous class, you’ll see all of them in the list.

At this point you might think of JDK 8’s lambdas. Will it work in the same way? Of course it will.

Even if the lambda expression is on the same line, the IDE will figure everything out.

This feature is already available in IntelliJ IDEA 13 EAP so why not go ahead and try it?

Please feel free to share your feedback on our discussion forum and submit bug reports to the issue tracker.

Develop with Pleasure!

 

image description

Discover more