更新时间:2022-11-30 14:16:41
通过将ClassReader.SKIP_DEBUG标志传递给ClassReader.accept()方法来消除行号和局部变量信息。
You can get rid of line numbers and local variables information by passing ClassReader.SKIP_DEBUG flag to ClassReader.accept() method.
另一种方法是在TraceClassVisitor和TraceMethodVisitor之前添加一个访问者会吞下您不想在输出中看到的事件。
An alternative approach wiuld be to add a visitor before TraceClassVisitor and TraceMethodVisitor that would swallow events you dont want to see in the output.