api / org.gradle.process / JavaForkOptions / getDebug

getDebug

@Input abstract fun getDebug(): Boolean

Determines whether debugging is enabled for the test process. When enabled — debug = true — the process is started in a suspended state, listening on port 5005. You should disable parallel test execution when debugging and you will need to reattach the debugger occasionally if you use a non-zero value for org.gradle.api.tasks.testing.Test#getForkEvery().

Return
true when debugging is enabled, false to disable.