Java launcher and remote debug
Answered
Hi all,
Has anyone got any documentation links on how to launch a java main class with JVM params? And how to create a remote jvm debug launcher?
Please sign in to leave a comment.
The Run configuration to run Java file would depend on the buildsystem you are using in project. For gradle - you will need to create a Gradle task to run the main class. See The Application Plugin Gradle documentation and the
applicationDefaultJvmArgs
property.For Maven-based, you may create the jps-run type configuration.
Use Attach to process action: https://stackoverflow.com/a/74071739/2000323