boom
Results
1
comments of
boom
我想到一种解决方案:在**qunar.tc.bistoury.instrument.client.debugger.DebuggerMethodVisitor**中新增`onMethodExit`方法,该方法继承自**org.objectweb.asm.commons.AdviceAdapter**,可以再目标方法返回值之前获取到返回值,**由于每个方法都会插桩,所以我们需要记录断点所在方法名称(qunar.tc.bistoury.instrument.client.debugger.DebuggerMethodVisitor#methodUniqueName)**,用于后续比较,代码如下: ``` @Override protected void onMethodExit(int opcode) { if (opcode == RETURN) { super.visitLdcInsn("void method"); } else if (opcode == ATHROW) { super.visitLdcInsn("Exception happened"); } else if (opcode == ARETURN)...