2
當我使用Eclipse ADT在真實設備(HTC One S)上調試我的Android程序時,堆棧跟蹤中的最後一個元素始終爲「< VM不提供顯示器信息>」 。這意味着我不知道我的代碼中的哪個部分導致了異常。有什麼方法可以獲得這些信息嗎?ADT:<VM不提供顯示器信息>
實例堆棧跟蹤:
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
@CommonsWare你是對的!你可以讓這個答案? – Scintillo