android 中的错误详细信息

发布于 2024-12-10 18:17:35 字数 923 浏览 1 评论 0原文

我正在使用 eclipse 在 android 中进行编程。但我在调试时遇到问题:我看不到异常、错误、应用程序崩溃时发生的任何事情的详细信息...我可以复制堆栈跟踪,但它给出的内容如下:

Thread [<1> main] (Suspended (exception RuntimeException))  
ActivityThread.performPauseActivity(ActivityThread$ActivityRecord, boolean, boolean)line: 3348  
ActivityThread.performPauseActivity(IBinder, boolean, boolean) line: 3305   
ActivityThread.handlePauseActivity(IBinder, boolean, boolean, int) line: 3288   
...

它没有说明任何有关碰撞。我需要查看崩溃的行,或者某种信息......我不知道我做错了什么。

还有什么可以查看更多信息吗?我读到人们展示了 android 错误的很多细节,例如:

02-01 15:13:41.316: ERROR/AndroidRuntime(3989): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cccc.xxxx/com.cccc.xxxx.ActivityMyScreen}: java.lang.IllegalArgumentException: contentView required: pkg=com.cccc.xxxx id=3145728 notification=Notification(vibrate=null,sound=null,defaults=0x0)

他做得怎么样?

谢谢

I'm using eclipse to programe in android. But I have a problem debugging: I can't see the details of an exceptions, errors, anything-happen when the app crash... I can copy the stack trace but it give something like:

Thread [<1> main] (Suspended (exception RuntimeException))  
ActivityThread.performPauseActivity(ActivityThread$ActivityRecord, boolean, boolean)line: 3348  
ActivityThread.performPauseActivity(IBinder, boolean, boolean) line: 3305   
ActivityThread.handlePauseActivity(IBinder, boolean, boolean, int) line: 3288   
...

It doesn't say anything about the crash. I need to see the line where it crash, or some kind of information... I cant know what I am doing bad.

There is anything to see more information? I read people showing android errors with a lot of detail, for example:

02-01 15:13:41.316: ERROR/AndroidRuntime(3989): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cccc.xxxx/com.cccc.xxxx.ActivityMyScreen}: java.lang.IllegalArgumentException: contentView required: pkg=com.cccc.xxxx id=3145728 notification=Notification(vibrate=null,sound=null,defaults=0x0)

How did he do?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

心是晴朗的。 2024-12-17 18:17:36

在eclipse中打开LogCat视图:window/show view/other/android/logcat

或者DDMS透视图:window/openperspective/other/DDMS

Open the LogCat view in eclipse: window/show view/other/android/logcat

Or the DDMS perspective: window/open perspective/other/DDMS

自我难过 2024-12-17 18:17:36

我认为您指的是 Android ADB 提供的 logcat 输出。您可以在此处查看 logcat 上的官方文档 http://developer.android.com /guide/developing/tools/logcat.html

这看起来也很好地描述了 Eclipse 中的一般调试步骤,如果您切换到 Android 调试透视图,它还会默认显示 logcat 窗口。 http://www.droidnova.com/debugging-in-android -使用-eclipse,541.html

I think you're referring to the logcat output available from the Android ADB. You can check out the official docs on logcat here http://developer.android.com/guide/developing/tools/logcat.html.

This also looks like a good description of general debugging steps within eclipse, which will also show you the logcat window by default if you switch to the Android Debug perspective. http://www.droidnova.com/debugging-in-android-using-eclipse,541.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文