我正在尝试在我的方法中打印异常和参数。但我无法从我的代码中得到任何结果。
import com.sun.btrace.annotations.*;
import static com.sun.btrace.BTraceUtils.*;
@BTrace
public class HelloWorld {
@OnMethod(clazz = "com.btrace.test.service.UserServiceImpl"
, method = "test", location = @Location(Kind.ERROR))
public static void onThreadStart(Throwable exception, @Self Object self, String param1
, @Return AnyType result, @Duration long duration) {
println("UserServiceImpl param1=" + param1);
Threads.jstack(exception);
}
}