For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

getDebug

open fun getDebug(): Boolean(source)

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().

Since Gradle 5.6, you can configure the port and other Java debug properties via #debugOptions(Action).