SetAutoAttachRequest

@Serializable
data class SetAutoAttachRequest(val autoAttach: Boolean, val waitForDebuggerOnStart: Boolean, val flatten: Boolean? = null, val filter: TargetFilter? = null)(source)

Request object containing input parameters for the TargetDomain.setAutoAttach command.

Constructors

Link copied to clipboard
constructor(autoAttach: Boolean, waitForDebuggerOnStart: Boolean, flatten: Boolean? = null, filter: TargetFilter? = null)

Types

Link copied to clipboard
class Builder(val autoAttach: Boolean, val waitForDebuggerOnStart: Boolean)

Properties

Link copied to clipboard

Whether to auto-attach to related targets.

Link copied to clipboard
val filter: TargetFilter? = null

Only targets matching filter will be attached.

Link copied to clipboard
val flatten: Boolean? = null

Enables "flat" access to the session via specifying sessionId attribute in the commands. We plan to make this the default, deprecate non-flattened mode, and eventually retire it. See crbug.com/991325.

Link copied to clipboard

Whether to pause new targets when attaching to them. Use Runtime.runIfWaitingForDebugger to run paused targets.