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

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

问题描述

我使用 SDK 2.2 将 HTC Comet 连接到 Eclipse.我进行了调试构建 - 应用程序没有运行;虽然它确实安装在设备上.在设备上,我在 Comet 屏幕上收到此消息框

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)正在等待调试器附加.
[强制关闭]

而在 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

推荐答案

如果您正在构建调试应用程序或在源代码中调用 Debug.waitingForDebugger() 的某个位置,则会显示等待调试器的对话框;

The Dialog Waiting for Debugger is shown if you are building a debug application or somewhere in your source code, you called Debug.waitingForDebugger();

在 Android Studio 2.0 及以上版本中,有一个将调试器附加到 Android 进程的选项.它是运行菜单中的最后一个菜单项.

Inside Android Studio 2.0 and above, there is an option of Attach Debugger to Android Process. It is the last menu item in the Run menu.

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

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