In my applicaiton, the params of most method is an object , not primitive type.but now so when I want to print the params, i can only use the codes below:
@BTrace
public class AllMethods {
@OnMethod(
clazz="com.xxx.xxxController",
method="getXXX",
location=@Location(Kind.RETURN)
)
public static void m(AnyType[] args, @Return AnyType result) {
printArray(args);
printFields(result);
}
}
this can't recursive print an object!
I am curioused about this design that not provide a method to recursive println an object....which i think is so easy to implement.