5

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,185
  • 13
  • 56
  • 110
fred sgard
  • 97
  • 1
  • 5

2 Answers2

11

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
  • 152,872
  • 27
  • 286
  • 297
-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
  • 400
  • 2
  • 11