chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.runtime.events / RuntimeEvent / ConsoleAPICalledEvent

ConsoleAPICalledEvent

data class ConsoleAPICalledEvent : RuntimeEvent

Issued when console API was called.

Official doc

Constructors

<init>

Issued when console API was called.

ConsoleAPICalledEvent(type: String, args: List<RemoteObject>, executionContextId: ExecutionContextId, timestamp: Timestamp, stackTrace: StackTrace? = null, context: String? = null)

Properties

args

Call arguments.

val args: List<RemoteObject>

context

Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.

val context: String?

executionContextId

Identifier of the context where the call was made.

val executionContextId: ExecutionContextId

stackTrace

Stack trace captured when the call was made. The async stack chain is automatically reported for the following call types: assert, error, trace, warning. For other types the async call chain can be retrieved using Debugger.getStackTrace and stackTrace.parentId field.

val stackTrace: StackTrace?

timestamp

Call timestamp.

val timestamp: Timestamp

type

Type of the call.

val type: String