相关详细调试与排球 [英] Detailled debug with Volley
问题描述
在Restkit在iOS上有一个详细的调试选项。 RKLogConfigureByName(*,RKLogLevelTrace);
。有谁知道如果有一个相当于乱射。基本上,我会直接到ErrorListener,但我得到了LogCat中没有额外的信息。既:
VolleyLog.e(错误:error.toString());
和
VolleyLog.e(错误:error.getMessage());
打印:
2.onErrorResponse:错误:
如果您想从凌空库,你必须使用adb详细日志
ADB -s 42f63b0de7318fe1壳setprop log.tag.Volley VERBOSE
其中 42f63b0de7318fe1
是你的设备ID,你将通过
ADB设备
如果您想保留此设置使用
ADB -s 42f63b0de7318fe1壳setprop persist.log.tag.Volley VERBOSE
如果你只有1设备,您可以ommit的 -S
参数
又见<一href="http://stackoverflow.com/questions/17797397/how-to-set-adt-system-property-in-eclipse-so-it-always-runs">How设置在Eclipse ADT系统属性,因此它始终运行
In Restkit on iOS there is a verbose debug option. RKLogConfigureByName("*", RKLogLevelTrace);
. Does anyone know if there is an equivalent for Volley. Basically I am going straight to the ErrorListener but I get no additional info in LogCat. Both:
VolleyLog.e("Error: ", error.toString());
And:
VolleyLog.e("Error: ", error.getMessage());
Prints:
2.onErrorResponse: Error:
If you want verbose Log from the volley library you have to use adb
adb -s 42f63b0de7318fe1 shell setprop log.tag.Volley VERBOSE
where "42f63b0de7318fe1
" is your device id which you will get by
adb devices
If you want to persist this setting use
adb -s 42f63b0de7318fe1 shell setprop persist.log.tag.Volley VERBOSE
If you have only 1 device you can ommit the -s
argument
see also How to set ADT system property in eclipse so it always runs
这篇关于相关详细调试与排球的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!