Scope

@Serializable
data class Scope(val type: ScopeType, val object: RemoteObject, val name: String? = null, val startLocation: Location? = null, val endLocation: Location? = null)

Scope description.

Official doc

Constructors

Link copied to clipboard
constructor(type: ScopeType, object: RemoteObject, name: String? = null, startLocation: Location? = null, endLocation: Location? = null)

Properties

Link copied to clipboard

Location in the source code where scope ends

Link copied to clipboard
val name: String?

(undocumented in the protocol definition)

Link copied to clipboard

Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.

Link copied to clipboard

Location in the source code where scope starts

Link copied to clipboard

Scope type.