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?

0
Have you made any customization in vmoptions file? If so, please see if you can undo the changes.

https://intellij-support.jetbrains.com/hc/en-us/articles/206544869-Configuring-JVM-options-and-platform-properties
0

I changed only the max heap size:

-Xmx6144m
-Xms128m
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-XX:+IgnoreUnrecognizedVMOptions
-ea
-Dsun.io.useCanonCaches=false
-Dsun.java2d.metal=true
-Djbr.catch.SIGABRT=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off
-XX:CICompilerCount=2
-XX:ReservedCodeCacheSize=512m
-XX:+UnlockDiagnosticVMOptions
-XX:TieredOldPercentage=100000

The run/debug configuration is the default one:

0
Please try "File | Invalidate Caches" and restart the IDE. If the issue persists, please share the zipped log folder(Help | Collect Logs and Diagnostic Data) in a new YouTrack ticket, we'll check further from there.

https://youtrack.jetbrains.com/newIssue
0

请先登录再写评论。