Intellj community IDEA 2024.2.4 fails to launch debugger
Hello, I created a java project using openjdk 23 and I'm trying to debug it, but once I press debug I get the following error:
C:\Users\chiappad\.jdks\openjdk-23.0.1\bin\java.exe -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=127.0.0.1:62360,suspend=y,server=n -javaagent:C:\Users\chiappad\AppData\Local\JetBrains\IdeaIC2024.2\captureAgent\debugger-agent.jar -Dkotlinx.coroutines.debug.enable.creation.stack.trace=false -Ddebugger.agent.enable.coroutines=true -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath "D:\Repository\Utility\CodeGenerator\out\production\CodeGenerator;D:\Programmi\IntelliJ IDEA Community Edition 2024.2.1\lib\idea_rt.jar" CodeGeneratorMain
OpenJDK 64-Bit Server VM warning: Option -Xdebug was deprecated in JDK 22 and will likely be removed in a future release.
Unrecognized option: -Xnoagent
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
From what i can understanding intellij is trying to launch the project with some non-valid options.
Is there some settings i need to change in order to fix the issue?
请先登录再写评论。
https://intellij-support.jetbrains.com/hc/en-us/articles/206544869-Configuring-JVM-options-and-platform-properties
I changed only the max heap size:
The run/debug configuration is the default one:
https://youtrack.jetbrains.com/newIssue