GeezerVison is showing docs.gradle.org — JavaDebugOptions (Gradle API 9.9.3)
Interface JavaDebugOptions
public interface JavaDebugOptions
- Since:
- 5.6
-
Method Summary
Modifier and Type
Method
Description
Should the debug agent start in the forked process? By default, this is false.
Host address to listen on or connect to when debug is enabled.
The debug port to listen on or connect to.
Should the process listen for a debugger to attach (server) or immediately connect to an already running debugger (client)?
Should the process suspend until the connection to the debugger is established?
-
Method Details
-
getEnabled
Should the debug agent start in the forked process? By default, this is false.
- Since:
- 5.6
-
getHost
Host address to listen on or connect to when debug is enabled. By default, no host is set.
When run in server mode, the process listens on the loopback address on Java 9+ and all interfaces on Java 8 and below by default.
Setting host to * will make the process listen on all network interfaces. This is not supported on Java 8 and below.
Setting host to anything else will make the process listen on that address.
When run in client mode, the process attempts to connect to the given host and getPort().
- Since:
- 7.6
-
getPort
The debug port to listen on or connect to.
- Since:
- 5.6
-
getServer
Should the process listen for a debugger to attach (server) or immediately connect to an already running debugger (client)?
In server mode (server = true), the process listens for a debugger to connect after the JVM starts up.
In client mode (server = false), the process attempts to connect to an already running debugger.
- Since:
- 5.6
-
getSuspend
Should the process suspend until the connection to the debugger is established?
- Since:
- 5.6