MoonBox icon indicating copy to clipboard operation
MoonBox copied to clipboard

moonbox-agent模块下的jvm-sandbox-repeater如何打断点调试?

Open 1Windy opened this issue 2 years ago • 3 comments

操作步骤: 1、开启远程调试模式 来 启动目标应用 image 2、idea 中使用进行远程调试 image 3、启动MoonBoxApplication,web中开启录制,attach到1中目标jvm image

现象:请求目标应用中http接口,DefaultEventListener中断点停不住

1Windy avatar Jan 11 '24 14:01 1Windy

可以考虑debug到com.vivo.jvm.sandbox.moonbox.module.MoonboxHeartbeatTask这个类,验证下本地debug是否链接成功

liuzhelucky avatar Jan 12 '24 09:01 liuzhelucky

可以考虑debug到com.vivo.jvm.sandbox.moonbox.module.MoonboxHeartbeatTask这个类,验证下本地debug是否链接成功

image MoonboxHeartbeatTask#start可以debug到。

但是moonbox-core下的com.alibaba.jvm.sandbox.repeater.plugin.core repeater实现无法debug到,doBefore和doReturn都不行,http和Java入口调用是采样成功的(有sampled日志),但是没录制到对应Java入口调用

@liuzhelucky

1Windy avatar Jan 12 '24 09:01 1Windy