如何解决"等待调试器和QUOT;信息? [英] How to resolve "Waiting for Debugger" message?

查看:776
本文介绍了如何解决"等待调试器和QUOT;信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有HTC彗星连接到Eclipse SDK与2.2。我做了调试版本 - 应用程序不运行;尽管它得到安装在设备上。在设备上,我得到了彗星屏幕上此消息框

I have HTC Comet connected to Eclipse with SDK 2.2. I do a debug build - the application does not run; though it does get installed on the device. On the device I get this message box on the Comet screen

等待调试
应用HunyDew(过程com.airvine.hunydew)正在等待调试器附加。
[强制关闭]

Waiting for Debugger
Application HunyDew (process com.airvine.hunydew) is waiting for the debugger to attach.
[Force Close]

而在Eclipse控制台我得到这些消息集

Whereas in the Eclipse console I get these set of messages

[2010-12-07 01:42:29 - hunydewprj] Android Launch!  
[2010-12-07 01:42:29 - hunydewprj] adb is running normally.  
[2010-12-07 01:42:29 - hunydewprj] Performing com.airvine.hunydew.HunyDewAAStartsHere activity launch  
[2010-12-07 01:42:47 - hunydewprj] Application already deployed. No need to reinstall.  
[2010-12-07 01:42:47 - hunydewprj] Starting activity com.airvine.hunydew.HunyDewAAStartsHere on device 308730C861BC  
[2010-12-07 01:42:49 - hunydewprj] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.airvine.hunydew/.HunyDewAAStartsHere }  
[2010-12-07 01:42:49 - hunydewprj] Attempting to connect debugger to 'com.airvine.hunydew' on port 8601  
[2010-12-07 01:43:09 - hunydewprj] Launch error: Failed to connect to remote VM. Connection timed out.  

应用程序在模拟器中运行良好 - 请帮助 - 它是什么,我在这里失踪?任何提示/建议吗?谢谢

The application runs fine in the Emulator - please help - what is it that I am missing here? Any hints/suggestions? Thanks

推荐答案

有些设备只会让调试器附加应用程序是否有android.permission.SET_DEBUG_APP许可在其清单文件中设置:

Some devices will only let the debugger attach if the application has the android.permission.SET_DEBUG_APP permission set in its manifest file:

<manifest>
  <uses-permission android:name="android.permission.SET_DEBUG_APP"></uses-permission>
</manifest> 

这篇关于如何解决&QUOT;等待调试器和QUOT;信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆