ConsoleAPICalled

@Serializable
data class ConsoleAPICalled(val type: ConsoleAPICalledType, val args: List<RemoteObject>, val executionContextId: ExecutionContextId, val timestamp: Timestamp, val stackTrace: StackTrace? = null, val context: String? = null) : RuntimeEvent(source)

Issued when console API was called.

Official doc

Constructors

Link copied to clipboard
constructor(type: ConsoleAPICalledType, args: List<RemoteObject>, executionContextId: ExecutionContextId, timestamp: Timestamp, stackTrace: StackTrace? = null, context: String? = null)

Properties

Link copied to clipboard

Call arguments.

Link copied to clipboard
val context: String? = null

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.

Link copied to clipboard

Identifier of the context where the call was made.

Link copied to clipboard
val stackTrace: StackTrace? = null

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.

Link copied to clipboard

Call timestamp.

Link copied to clipboard

Type of the call.