简体   繁体   English

我的应用程序崩溃了,我怎样才能获得崩溃日志?

[英]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.

相关问题 Eclipse崩溃了,现在我无法访问我的工作区。 崩溃后Eclipse删除了我的文件。 这是什么解决方案? - Eclipse crashed and now I can't access my workspace. Eclipse deleted my files after the crash. How is that a solution to anything? 当我在应用程序中实现 barteksc 时,我的应用程序崩溃了 - when i implement barteksc in app my app just crash 我正在学习如何开发应用程序,但我不知道为什么我的应用程序崩溃了 - I'm learning how to develop an app and I don't know why my app is crashed 怎么能让我的功能崩溃? - How can I let my function crash? 如何确保使用 GeoFire - removeLocation () 不会导致我的应用程序崩溃? - How can I ensure that using GeoFire - removeLocation () does not cause my app to crash? 如何获取server.log文件中的日志条目以在jsf页面上打印出来 - How can I get the log-entries in my server.log file to print out on a jsf page 重新启动移动设备时,我的应用程序崩溃了 - My app getting crashed when i restart my Mobile Double.parseDouble怎么会崩溃我的应用程序? - How can a Double.parseDouble crash my app? 如何让我的程序在使用 do-while 循环时只计算一个单独的单词? - How can I get my program to just count a word that is by itself while using a do-while loop? 如何使我的Android应用程序将SharedPreferences仅作为一组首选项,以便我可以控制它并通过按钮清除首选项 - How can I make my android app have SharedPreferences as just one set of preferences, so that I can control it and clear the preferences with a button
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM