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.

setDebug

open fun setDebug(enabled: Boolean)(source)

Enable or disable debugging for the process. When enabled, the process is started suspended and listening on port 5005.

The debug properties (e.g. the port number) can be configured in #debugOptions(Action).