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?

1
1 comment

how to launch a java main class with JVM params?

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.

how to create a remote jvm debug launcher?

Use Attach to process action: https://stackoverflow.com/a/74071739/2000323

 

0

Please sign in to leave a comment.