【问题标题】:ADT: <VM does not provide monitor information>ADT:<VM 不提供监视器信息>
【发布时间】: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


【解决方案1】:

如果您将 Eclipse 设置为中断未处理的异常,则 Eclipse 会在 LogCat 有机会记录内容之前中断。

我知道的主要选项是:

  • 首先不要中断未处理的异常,或者

  • 按调试工具栏中的“运行”选项继续越过 Eclipse 的断点,这样 LogCat 就可以记录异常

【讨论】:

    猜你喜欢
    • 2011-02-05
    • 2020-05-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-01-23
    • 2011-06-28
    相关资源
    最近更新 更多