如何在eclipse中设置ADT系统属性,以便它始终运行 [英] How to set ADT system property in eclipse so it always runs

查看:198
本文介绍了如何在eclipse中设置ADT系统属性,以便它始终运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣运行

  adb shell setprop log.tag.Volley VERBOSE 

在任何时候,我可以看到总是看到这些调试消息在logcat内。有什么地方我可以指定这个吗?我不想每次打开命令提示符来设置这个。

解决方案

使我的评论清晰可见,因为答案:



使用领先单词持久化。在您的包之前应该导致持久的属性。

  adb shell setprop persist.your.package.name VERBOSE 

来源:这篇文章中的问题 Mike Lockwoods第一个回答这个线程



我不知道,如果这适用于重新启动的AVDs,如果它与avd的擦除用户数据一起擦除。 / p>

I am interested in running

  adb shell setprop log.tag.Volley VERBOSE 

at all times so i can see always see these debug messages inside logcat. Is there somewhere I can perm specify this? I don't want to open a command prompt every time to set this.

解决方案

to make my comment clear and visible as answer:

using leading word persist. prior to your package should lead to a persistent property.

adb shell setprop persist.your.package.name VERBOSE

sources: question in this post and Mike Lockwoods first answer in this thread

i don't know, if this works with AVDs that are restarted and if it's wiped together with the wipe user data of the avd.

这篇关于如何在eclipse中设置ADT系统属性,以便它始终运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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