I know how to debug in eclipse, but I want to know an effective way of finding the flow of execution from a method.
E g:
class A
{
method S()
{}
method S1()
{
B.SS()
}
method S2()
{
A.S1()
}
}
class B
{
method SS()
{
A.S()
}
method SS1()
{
B.SS2()
}
method SS2()
{
A.S2()
}
}
Given these two classes, how can I trace the flow of the methods from A.S2() to A.S() other than debugging?
CTRL + ALT + H shows you the call hierarchy for a method. Perhaps that's what you wanted.
So it you highlight a method and click CTRL + ALT + H, it shows, in the Call Hierarchy window, all the methods the call that method, and for each of those methods, all the methods that call them, and so on ...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With