fred sgard
fred sgard

Reputation: 107

how to find which method called a specific method with break point in it

As I was debugging my code, I placed a break point within a method called getDate().

I ran my code and execution halted right on my break point, which is great.

But is there a way in Eclipse or (preferably) Android Studio to find out which method called getDate() ?

Upvotes: 6

Views: 4552

Answers (2)

Blackbelt
Blackbelt

Reputation: 157437

Yes there is a simple way. On Android studio it's called Frames perspective, and it is part of the debugger perspective. When your app stops on a breakpoint you can inspect the whole chain of callers

enter image description here

picture is taken from here

Upvotes: 14

kondu
kondu

Reputation: 410

In Eclipse, you can see the thread sequence in debug mode.

Or you can go to call hierarchy by selecting a particular method.

Upvotes: -1

Related Questions