Debug java application

Hi, I am using application plugin, so I have a run task in my build script. I am looking for ways to change the default debug parameters port and also the suspend flag (I only want to optionally suspend in my case)

Hey,

currently the debug flag of the JavaExec task allows no further
customization. But you can fall back to configure the debug options as
normal jvmargs:

run {
    jvmArgs "-Xdebug"
    jvmArgs "-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7890"
}