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!

 

About Andrey Cheptsov

Andrey Cheptsov is IntelliJ IDEA product marketing manager at JetBrains. He's passionate about productivity, programming languages and tools.
This entry was posted in New Features and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">