pl.wendigo.chrome.api.debugger / ScriptParsedEvent

ScriptParsedEvent

data class ScriptParsedEvent : Event (source)

Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.

Link
Debugger#scriptParsed event documentation.

Constructors

<init>

ScriptParsedEvent(scriptId: ScriptId, url: String, startLine: Int, startColumn: Int, endLine: Int, endColumn: Int, executionContextId: ExecutionContextId, hash: String, executionContextAuxData: JsonNode? = null, isLiveEdit: Boolean? = null, sourceMapURL: String? = null, hasSourceURL: Boolean? = null, isModule: Boolean? = null, length: Int? = null, stackTrace: StackTrace? = null)

Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.

Properties

endColumn

val endColumn: Int

Length of the last line of the script.

endLine

val endLine: Int

Last line of the script.

executionContextAuxData

val executionContextAuxData: JsonNode?

Embedder-specific auxiliary data.

executionContextId

val executionContextId: ExecutionContextId

Specifies script creation context.

hash

val hash: String

Content hash of the script.

hasSourceURL

val hasSourceURL: Boolean?

True, if this script has sourceURL.

isLiveEdit

val isLiveEdit: Boolean?

True, if this script is generated as a result of the live edit operation.

isModule

val isModule: Boolean?

True, if this script is ES6 module.

length

val length: Int?

This script length.

scriptId

val scriptId: ScriptId

Identifier of the script parsed.

sourceMapURL

val sourceMapURL: String?

URL of source map associated with script (if any).

stackTrace

val stackTrace: StackTrace?

JavaScript top stack frame of where the script parsed event was triggered if available.

startColumn

val startColumn: Int

Column offset of the script within the resource with given URL.

startLine

val startLine: Int

Line offset of the script within the resource with given URL (for script tags).

url

val url: String

URL or name of the script parsed (if any).

Inherited Functions

protocolDomain

fun protocolDomain(): String