Android Studio - 在调试 Android 应用程序时,我在哪里可以看到调用堆栈?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21071960/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android Studio - Where can I see callstack while debugging an android app?
提问by IsmailS
While on a break point, how do I see the call stack to find the callee method/function?
在断点处,如何查看调用堆栈以查找被调用方方法/函数?
回答by longi
Seems like there is an UI-Bug in the Android Studio (1.x, 2.x and 3.x).
似乎在 Android Studio(1.x、2.x 和 3.x)中有一个 UI-Bug。
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".
对我来说,“框架/线程”面板完全隐藏在工具栏后面,因此我必须通过拖动其左边框以显示“框架/线程”来更改“变量”面板的大小。
[I have to admit, that @Greg added this pictureafter reviewing my answer!]
[我不得不承认,@Greg在查看我的回答后添加了这张图片!]
回答by Nickolai Astashonok
At the bottom panel you should have "5: Debug". Click on it and select "Debugger -> Threads"
在底部面板中,您应该有“5:调试”。单击它并选择“调试器-> 线程”
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.
您可能需要找到最右侧的“线程”图标,甚至单击左侧的“恢复布局”按钮来恢复此窗口。