如何解决"等待调试器和QUOT;信息?如何解决、调试器、信息、QUOT

2023-09-12 21:57:20 作者:爱到八分就好

我有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>