Slackbot
02/16/2024, 2:41 AMAdam
02/16/2024, 8:19 AMCaleb Cushing
02/16/2024, 1:56 PMVampire
02/16/2024, 3:00 PMif (ManagementFactory.runtimeMXBean.inputArguments.any { it.startsWith('-agentlib:jdwp=') }) {
runner.withDebug(true)
}
This way when I use --debug-jvm
or press "Debug" in the IDE, withDebug(true)
is automatically used and it just works. 🙂Caleb Cushing
02/16/2024, 3:01 PMCaleb Cushing
02/16/2024, 3:01 PMVampire
02/16/2024, 3:35 PMCaleb Cushing
02/16/2024, 3:35 PMCaleb Cushing
02/16/2024, 3:36 PMwithDebug
set is, but I'm moderately confident that hard drive access is more expensiveVampire
02/16/2024, 3:36 PMVampire
02/16/2024, 3:37 PMwithDebug
just makes the tests be run in-process instead of forked so that when debugging the test execution you can debug into the Gradle buildCaleb Cushing
02/16/2024, 3:37 PMwithDebug
doesn't work with configuration cache, so...Caleb Cushing
02/16/2024, 3:37 PMCaleb Cushing
02/16/2024, 3:37 PMCaleb Cushing
02/16/2024, 3:37 PMCaleb Cushing
02/16/2024, 3:38 PMVampire
02/16/2024, 3:38 PMCaleb Cushing
02/16/2024, 3:38 PMVampire
02/16/2024, 3:38 PMwithDebug