Types

Link copied to clipboard
@Serializable
data class AttachedToTarget(val sessionId: SessionID, val targetInfo: TargetInfo, val waitingForDebugger: Boolean) : TargetEvent

Issued when attached to target because of auto-attach or attachToTarget command.

Link copied to clipboard
@Serializable
data class DetachedFromTarget(val sessionId: SessionID, val targetId: TargetID? = null) : TargetEvent

Issued when detached from target for any reason (including detachFromTarget command). Can be issued multiple times per target if multiple sessions have been attached to it.

Link copied to clipboard
@Serializable
data class ReceivedMessageFromTarget(val sessionId: SessionID, val message: String, val targetId: TargetID? = null) : TargetEvent

Notifies about a new protocol message received from the session (as reported in attachedToTarget event).

Link copied to clipboard
@Serializable
data class TargetCrashed(val targetId: TargetID, val status: String, val errorCode: Int) : TargetEvent

Issued when a target has crashed.

Link copied to clipboard
@Serializable
data class TargetCreated(val targetInfo: TargetInfo) : TargetEvent

Issued when a possible inspection target is created.

Link copied to clipboard
@Serializable
data class TargetDestroyed(val targetId: TargetID) : TargetEvent

Issued when a target is destroyed.

Link copied to clipboard
@Serializable
data class TargetInfoChanged(val targetInfo: TargetInfo) : TargetEvent

Issued when some information about a target has changed. This only happens between targetCreated and targetDestroyed.