Debug configuration with Java 9 module path
Answered
Hello,
Is there a Java debug configuration where it is possible to use a Java 9 module path instead of the class path and a main class? The command-line would be something like `java --module-path target/modules -m application $*`. I currently debug with remote attachment, but running it inside the IDE would be a lot more convenient. You could also use the profiler then.
Best regards,
Werner.
Please sign in to leave a comment.
Hi Werner,
You modify the options of the Java app run/debug configuration to use the classpath of a specific module, specify a different classpath or select dependencies that you want to exclude from the classpath.
More information here: https://www.jetbrains.com/help/idea/2022.2/run-debug-configuration-junit.html#java
Hi Arina,
Thanks for the explanation. However, a class path and a module path are not the same thing. For example, the class loader structure is different. I'm running into verify errors when loading additional modules dynamically.
Best regards,
Werner.
Werner Donné please check this ticket https://youtrack.jetbrains.com/issue/IDEA-202662 (you can also vote for it) and it's comments