Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 477
fred sgard Avatar asked Jan 09 '23 11:01

fred sgard


1 Answers

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

like image 162
Blackbelt Avatar answered Jan 11 '23 03:01

Blackbelt