cgp
cgp

Reputation: 41401

Is it possible to get a "potential" stack trace for a method at compile time?

So, I've got a routine that can be called from about four different functions. What I want to do is walk up the possible routes that a this routine could have been called from.

I'm using Eclipse. I'm thinking this must be somewhat possible as I know I can do this by hand, albeit slowly.

Upvotes: 2

Views: 188

Answers (2)

akf
akf

Reputation: 39505

put your cursor on the method name and hit ctrl-alt-h for the calling methods

Upvotes: 1

notnoop
notnoop

Reputation: 59307

In eclipse, right click on the method name and select 'Open call hierarchy'. Usually it's associated with 'Ctrl+Alt+H'.

Upvotes: 7

Related Questions