Reputation: 107
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
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
picture is taken from here
Upvotes: 14
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