简体   繁体   English

是什么使这个Android应用程序可调试

[英]What makes this Android app debuggable

Until now, when I make a debuggable version of my app I use: 到目前为止,当我制作应用程序的可调试版本时,我使用:

android:debuggable="true" android:debuggable =“ true”

in the manifest. 在清单中。

But I just downloaded some source code that doesn't use this and yet when I launch it with Debug, it is in debug mode. 但是我刚刚下载了一些不使用此代码的源代码,但是当我使用Debug启动它时,它处于调试模式。 Where is the debug flag set for this app? 此应用的调试标志设置在哪里?

ADT does that for you when you run in debug mode. 当您在调试模式下运行时,ADT会为您执行此操作。 From the docs : 文档

Ensure that your application is debuggable by setting the android:debuggable attribute of the element to true. 将元素的android:debuggable属性设置为true,以确保您的应用程序可调试。 As of ADT 8.0, this is done by default when you build in debug mode. 从ADT 8.0开始,默认情况下是在调试模式下构建时完成的。

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

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