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

47,817

Solution 1

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

Solution 2

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!]

Share:
47,817

Related videos on Youtube

IsmailS
Author by

IsmailS

HTML5, JavaScript, BackboneJS, AngularJS, jQuery, REST, OpenRasta, ASP.NET, ASP.NET MVC, WCF developer, SDET, C#, VB.NET Agile Techinical Lead Like swimming, reading non-fiction/motivational http://toolsforwebdevelopers.blogspot.com

Updated on January 29, 2020

Comments

  • IsmailS
    IsmailS over 4 years

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

  • ARLabs
    ARLabs about 9 years
    I see only: { Debugger, Console, Logcat }. Where is "Threads" ?
  • ARLabs
    ARLabs about 9 years
    Thanks Nickolai, I didn't find "Threads" because I had closed it. I clicked on the icon on the right of the Tabs and I reopened it.
  • Rob McFeely
    Rob McFeely almost 9 years
    This took me ages to find and is very counter intuitive. :( . You can turn off the terrible counter intuitive hiding on the settings cog in the extreme top right of the debug window and ensure "Show Views as Tabs" is unchecked
  • akiller
    akiller almost 8 years
    This was the second time I've come across your answer to fix this. Shame i can't upvote for both times!
  • longi
    longi over 7 years
    @akiller shame that it's still not fixed ;)
  • Alon
    Alon over 7 years
    It may be minimized to the right, find the button with the little arrow pointing at a line (top right corner of the bottom panel) and click it. It will expand again
  • Rock Lee
    Rock Lee over 7 years
    That panel was totally hidden 100%! Thank you for the clear picture!
  • Michael
    Michael over 6 years
    i can see the call stack, but how do I see the PC of each frame?
  • david m lee
    david m lee over 6 years
    Yes, the same dragging out works for me. How could this happen? Studio can make it better, right?
  • Almeida
    Almeida about 6 years
    very nice ! Thank you