开发者

Is there a way to set DEBUG for all tags in Android's ADB?

开发者 https://www.devze.com 2023-01-06 20:30 出处:网络
I know I can set DEBUG in Android\'s ADB by typing: adb shell setprop log.tag.MyTag DEBUG What I\'m wondering is if there is a way to set debug for all my classes that do logging instead of having t

I know I can set DEBUG in Android's ADB by typing:

adb shell setprop log.tag.MyTag DEBUG

What I'm wondering is if there is a way to set debug for all my classes that do logging instead of having to type the above multiple times:

adb shell setprop log.tag.MyTag1 DEBUG

adb shell setprop log.tag.MyTag2 DEBUG

adb shell setprop log.tag.MyTag3 DEBU开发者_如何学CG

adb shell setprop log.tag.MyTag4 DEBUG

Something like:

adb shell setprop log.tag.* DEBUG

I'm using Eclipse for developing, but I'm currently setting the DEBUG through the command line adb.

Thanks, Kevin


Well, I don't see the purpose to use a per class tagging in debug.

Instead you should use per Application tagging.

0

精彩评论

暂无评论...
验证码 换一张
取 消