odd-platform
odd-platform copied to clipboard
Suspend application start for debug based on environment variable
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.