1

In Eclipse, I know how to find all the method that call my method - with the call hierarchy. Question: Is there a way to do the reverse?

The method A calls method B, C and D method B calls C, E, F method C calls X, Y and Z method D calls X, F and Z etc .... 

Is there a way to get that tree view in eclipse, somehow? Or is there any other tool ?

2 Answers 2

1

The "Call Hierarchy" view of Eclipse can show trees of both directions:

  • Show caller hierarchy (all methods calling a method)

    1

  • Show callee hierarchy (all methods called by a method)

    2

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you. Perfect !! Almost what I need. (It shows all the methods, all multiple times, i will just have to filter)
0

You can also add a breakpoint in the method you want the calls for and look at the callstack in the debugger when you hit that breakpoint. This is probably not as good as @Thomas Fritsch's answer but it will yield some information and works in many debuggers.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.