[英]My app just crashed, how can I get the crash log?
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: 我通过USB插入手机并尝试:
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.