odd-platform icon indicating copy to clipboard operation
odd-platform copied to clipboard

Suspend application start for debug based on environment variable

Open DementevNikita opened this issue 3 years ago • 0 comments
trafficstars

odd-platform-api/build.gradle has a configuration block for bootRun task that opens a debug port:

bootRun {
    jvmArgs = ["-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"]
}

It'd be nice to suspend the application start based on a environment variable. This way we can easily manipulate it without need to go and change the configuration each time we need to suspend a start.

DementevNikita avatar Jul 03 '22 11:07 DementevNikita