Eclipse Tip: Trace method call chains

When reviewing or fixing some old code have you though where is this method called from? Eclipse provides a nice way to find that out. Just go to the method in Java Editor and press Ctrl+Alt+H. Eclipse opens up a Call Hierarchy view that show the method’s call chain.

Members Calling.png

You can also find the trace of the methods being called from the current method. Just use the icons in the view.

Calls From.png

Vasanth Dharmaraj is a Java Architect currently working for Western Union living in the Bay Area. He is interested in programming, gadgets, formula one... You can follow him on Twitter.

Posted in Eclipse, Java, Software

Ads By Google