chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.debugger.events / DebuggerEvent / ScriptParsedEvent

ScriptParsedEvent

data class ScriptParsedEvent : DebuggerEvent

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

Official doc

Constructors

<init>

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

ScriptParsedEvent(scriptId: ScriptId, url: String, startLine: Int, startColumn: Int, endLine: Int, endColumn: Int, executionContextId: ExecutionContextId, hash: String, executionContextAuxData: JsonElement? = null, isLiveEdit: Boolean? = null, sourceMapURL: String? = null, hasSourceURL: Boolean? = null, isModule: Boolean? = null, length: Int? = null, stackTrace: StackTrace? = null, codeOffset: Int? = null, scriptLanguage: ScriptLanguage? = null, debugSymbols: DebugSymbols? = null, embedderName: String? = null)

Properties

codeOffset

If the scriptLanguage is WebAssembly, the code section offset in the module.

val codeOffset: Int?

debugSymbols

If the scriptLanguage is WebASsembly, the source of debug symbols for the module.

val debugSymbols: DebugSymbols?

embedderName

The name the embedder supplied for this script.

val embedderName: String?

endColumn

Length of the last line of the script.

val endColumn: Int

endLine

Last line of the script.

val endLine: Int

executionContextAuxData

Embedder-specific auxiliary data.

val executionContextAuxData: JsonElement?

executionContextId

Specifies script creation context.

val executionContextId: ExecutionContextId

hash

Content hash of the script.

val hash: String

hasSourceURL

True, if this script has sourceURL.

val hasSourceURL: Boolean?

isLiveEdit

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

val isLiveEdit: Boolean?

isModule

True, if this script is ES6 module.

val isModule: Boolean?

length

This script length.

val length: Int?

scriptId

Identifier of the script parsed.

val scriptId: ScriptId

scriptLanguage

The language of the script.

val scriptLanguage: ScriptLanguage?

sourceMapURL

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

val sourceMapURL: String?

stackTrace

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

val stackTrace: StackTrace?

startColumn

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

val startColumn: Int

startLine

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

val startLine: Int

url

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

val url: String