Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I have to track the flow of execution in eclipse

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?

like image 472
BelieveToLive Avatar asked Dec 31 '25 14:12

BelieveToLive


1 Answers

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 ...

like image 91
Eran Avatar answered Jan 03 '26 03:01

Eran



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!