我的应用程序只是崩溃了,我怎么能得到崩溃日志? [英] My app just crashed, how can I get the crash log?
本文介绍了我的应用程序只是崩溃了,我怎么能得到崩溃日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我测试我的实际设备上我的应用程序,它好像有内存泄漏。该应用程序后的几个小时已经崩溃。我怎样才能拉起飞机坠毁的日志?
我通过USB插入我的手机,并试图:
亚行logcat -v
但我在我的终端以下消息:
- 等待装置 -
错误:一个以上的设备和仿真器
我
如何诊断我的碰撞?
解决方案
这是因为有...
一个以上的设备和仿真器
该错误是相当明显的。所以,你在这种情况下,做的是:
ADB设备
和它列出了您的设备/仿真器的名称。然后:
名称 - 您的设备的亚行-s的logcat
I am testing my app on my actual device, and it seems like there is a memory leak. The app has crashed after a couple of hours. How can I pull up the log of the crash?
I plugged my phone in via USB and tried:
adb logcat -v
but I get the following message in my terminal:
- waiting for device -
error: more than one device and emulator
How can I diagnose my crash?
解决方案
That's because there's...
more than one device and emulator
The error is fairly clear. So, what you do in this case is:
adb devices
And it lists the name of your devices/emulators. Then:
adb -s name-of-your-device logcat
这篇关于我的应用程序只是崩溃了,我怎么能得到崩溃日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文