IsmailS
IsmailS

Reputation: 10863

Android Studio - Where can I see callstack while debugging an android app?

While on a break point, how do I see the call stack to find the callee method/function?

Upvotes: 112

Views: 53123

Answers (3)

auspicious99
auspicious99

Reputation: 4311

It depends on the version of Android Studio. In Android Studio 4.x (screenshot from 4.1.3), it is the camera icon on the left, as seen in the screenshot. Hover over it and you see "Get thread dump", even though it may be counter-intuitive, being more often associated with taking a screenshot.

Android Studio 4.1.3 example

I just checked Android Studio Dolphin, it is the same button.

Upvotes: 0

Nickolai Astashonok
Nickolai Astashonok

Reputation: 2888

At the bottom panel you should have "5: Debug". Click on it and select "Debugger -> Threads"

You may need to find the "Threads" icon on the far right, or even click the "Restore Layout" button on the left to restore this window.

enter image description here

Upvotes: 120

LONGI
LONGI

Reputation: 11443

Seems like there is an UI-Bug in the Android Studio (1.x, 2.x and 3.x).

For me the "Frames/Threads" Panel was completely hidden behind the toolbar, so I had to change the size from the "variable" panel by dragging its left border to reveal the "Frames/Threads".

Example

[I have to admit, that @Greg added this picture after reviewing my answer!]

Upvotes: 156

Related Questions