public interface JavaDebugOptions
Modifier and Type | Method | Description |
---|---|---|
Property<java.lang.Boolean> |
getEnabled() |
Should the debug agent start in the forked process?
|
Property<java.lang.String> |
getHost() |
Host address to listen on or connect to when debug is enabled.
|
Property<java.lang.Integer> |
getPort() |
The debug port to listen on or connect to.
|
Property<java.lang.Boolean> |
getServer() |
Should the process listen for a debugger to attach (server) or immediately connect to an already running debugger (client)?
|
Property<java.lang.Boolean> |
getSuspend() |
Should the process suspend until the connection to the debugger is established?
|
@Input Property<java.lang.Boolean> getEnabled()
@Incubating @Optional @Input Property<java.lang.String> getHost()
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()
.
@Input Property<java.lang.Boolean> getServer()
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.