【发布时间】:2014-01-01 15:45:30
【问题描述】:
当我使用 Eclipse ADT 在真实设备 (HTC One S) 上调试我的 Android 程序时,堆栈跟踪中的最后一个元素始终是“
示例堆栈跟踪:
Thread [<1> main] (Suspended (exception IllegalStateException))
<VM does not provide monitor information>
Choreographer.doCallbacks(int, long) line: 563
Choreographer.doFrame(long, int) line: 529
Choreographer$FrameDisplayEventReceiver.run() line: 719
Handler.handleCallback(Message) line: 615
Choreographer$FrameHandler(Handler).dispatchMessage(Message) line: 92
Looper.loop() line: 155
ActivityThread.main(String[]) line: 5454
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 511
ZygoteInit$MethodAndArgsCaller.run() line: 1029
ZygoteInit.main(String[]) line: 796
NativeStart.main(String[]) line: not available [native method]
【问题讨论】:
-
我的猜测是您已经设置了 Eclipse 以中断未处理的异常。在这种情况下,您需要越过异常点,允许将异常记录到 LogCat。
-
@CommonsWare 你是对的!你能回答这个问题吗?
标签: android eclipse debugging adb adt