-
Notifications
You must be signed in to change notification settings - Fork 2
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
intellij 2024.3 debugger agent conflict with hotSwapAgent. #9
Comments
what will happen if use intellij 2024.2 debugger agent in intellij 2024.3, seem many features works fine. |
The current workaround is to disable the "Instrumenting Agent" option. To do this, navigate to "Build, Execution, Deployment" → "Debugger" → "Async Stack Traces" and uncheck the "Instrumenting agent". |
Hi @skybber, I'm not quite shure why this issue was closed without further action. Can you elaborate? The original bug report says Java 17 works fine but I cannot confirm. Starting Jetbrains JDK 17.0.12 (installed via sdk man) with hotswap agent and Jetbrains Debugger Agent in debug mode fails. As far as I can tell there is also an issue with 🚫 I would appreciate
EDIT: I have fixed my erroneous assumption that the workaround setting is global. The setting is per project: |
@StefanPenndorf jbr17 and jbr21 is working for me on big project. Please:
Debug agent newly redefines core JDK classes on start, we have support in new JBR17 and JBR21 for it but it is partially done in Trava11 and there is no support in java8. You should see following logs on successfull start:
|
how about provide an vm option on debug agent side like -DdisableRedefineJdkClasses=true in debugger agent. when use hotswapAgent you can pass the vm option to it instead of need change debugger setting in intellij. |
Thanks for the fast reply, @skybber . I'm pretty shure it's the right JDK used.
Launching without Debugger Agent will produce the following log output instead:
Please note that I'm using Version 2.0.1 which is the latest version districbuted via github releases and/or maven central. I recognized that you're using 2.0.2 and that there was a 2.0.2 tag created 4 days ago but there is no If there is any indication that the problem has been fixed in the latest version, I'll build the version 2.0.2 myself and give it a try?!?! |
@StefanPenndorf thanks for report. It seems that the core redefinition patch is not in 17.0.12+1-b1087.25. Could you please check it in at least 17.0.12-linux-x64-b1207.37 ? According to the test the problem is fixed in 17.0.12-linux-x64-b1207.37. (I was able reproduce it in 17.0.12+1-b1087.25 but not in 17.0.12-linux-x64-b1207.37. https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-17.0.12b1207.37 |
I can confirm that 17.0.12+1-b1207.37 fixes the problem:
Thank you @skybber for your patience and your efforts to trace the error. |
HotswapAgent https://github.com/HotswapProjects/HotswapAgent is a framework for hot reloading java claases.
In intellij 2024.3 java8 and java11 will meet issues when run debug with hotswap agent together. run code when meet NoClassDefFoundError, it will throw ClassNotFoundException.
java17 works fine.
For intellij 2024.2 or eailer versions. it work fine. when change the debugger agent file in 2024.3 to 2024.2 agent file, it work fine.
Example code:
try {
A.hello()
}catch(NoClassDefFoundError e){
}
when A class not exist, the catch part wont work, it will throw a ClassNotFoundException.
HotswapAgent is a open source framework used by lots of projects.
If possible, could you please provide some guidance on how to resolve this issue? I'd be happy to assist further if any additional details are needed.
The text was updated successfully, but these errors were encountered: