6

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() ?

shkschneider
  • 17,833
  • 13
  • 59
  • 112
fred sgard
  • 107
  • 1
  • 5

2 Answers2

12

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

Blackbelt
  • 156,034
  • 29
  • 297
  • 305
-1

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

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

kondu
  • 410
  • 3
  • 11