Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1Windy opened this issue Jan 11, 2024 · 2 comments
Open

Comments

@1Windy
Copy link

1Windy commented Jan 11, 2024

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

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

@liuzhelucky
Copy link
Contributor

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

@1Windy
Copy link
Author

1Windy commented Jan 12, 2024

可以考虑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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants