简体   繁体   English

无法调试android应用程序

[英]Unable to debug android application

I need to debug my application to look for content in variables and so on. 我需要调试我的应用程序以查找变量中的内容,等等。 I usually do this on my phone with usb debugging driver and eclipse. 我通常使用USB调试驱动程序和Eclipse在手机上执行此操作。 But my app won't automatically start on the phone any longer. 但是我的应用程序将不再自动在手机上启动。 The console in Eclipse only shows this: Eclipse中的控制台仅显示以下内容:

[2012-03-29 17:18:56 - AppName] Performing sync
[2012-03-29 17:18:58 - AppName] Uploading AppName.apk onto device '80A354043047206372'
[2012-03-29 17:18:58 - AppName] Installing AppName.apk...
[2012-03-29 17:19:01 - AppName] Success!
[2012-03-29 17:19:01 - AppName] \AppName\bin\AppName.apk installed on device
[2012-03-29 17:19:01 - AppName] Done!

Now I have to start my app manually, and therefore I can't debug the app. 现在,我必须手动启动我的应用程序,因此无法调试该应用程序。

Any suggestions to this problem? 对这个问题有什么建议吗?

I think you should try to config your Run configuration in the eclipse like below showing picture, look at your Launch Action . 我认为您应该尝试在Eclipse中配置您的Run configuration ,如下图所示,查看您的Launch Action

在此处输入图片说明

In your manifest, add andrdoid:debuggable="true" And launch your app in debugging mode. 在清单中,添加andrdoid:debuggable="true"并以调试模式启动您的应用程序。

I also think that you don't have any launcher activity. 我也认为您没有任何启动器活动。 Make sure you have an activity with LAUNCHER CATERGORY and ACTION MAIN. 确保您有关于发射器类别和主要动作的活动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM