Table of Contents

Class ScriptParsedEventArgs

Namespace
Selenium.WebDriver.BiDi.Cdp.Debugger
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

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

public sealed record ScriptParsedEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<ScriptParsedEventArgs>
Inheritance
EventArgs
ScriptParsedEventArgs
Implements
IEquatable<EventArgs>
Inherited Members
EventArgs.ToString()
EventArgs.GetHashCode()
EventArgs.Equals(EventArgs)
EventArgs.<Clone>$()
EventArgs.BiDi
EventArgs.AdditionalData
EventArgs.AdditionalMessageData

Constructors

ScriptParsedEventArgs(ScriptId, string, long, long, long, long, ExecutionContextId, string, string, JsonElement?, bool?, string?, bool?, bool?, long?, StackTrace?, long?, ScriptLanguage?, ImmutableArray<DebugSymbols>?, string?, ImmutableArray<ResolvedBreakpoint>?)

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

public ScriptParsedEventArgs(ScriptId ScriptId, string Url, long StartLine, long StartColumn, long EndLine, long EndColumn, ExecutionContextId ExecutionContextId, string Hash, string BuildId, JsonElement? ExecutionContextAuxData = null, bool? IsLiveEdit = null, string? SourceMapURL = null, bool? HasSourceURL = null, bool? IsModule = null, long? Length = null, StackTrace? StackTrace = null, long? CodeOffset = null, ScriptLanguage? ScriptLanguage = null, ImmutableArray<DebugSymbols>? DebugSymbols = null, string? EmbedderName = null, ImmutableArray<ResolvedBreakpoint>? ResolvedBreakpoints = null)

Parameters

ScriptId ScriptId

Identifier of the script parsed.

Url string

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

StartLine long

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

StartColumn long

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

EndLine long

Last line of the script.

EndColumn long

Length of the last line of the script.

ExecutionContextId ExecutionContextId

Specifies script creation context.

Hash string

Content hash of the script, SHA-256.

BuildId string

For Wasm modules, the content of the build_id custom section. For JavaScript the debugId magic comment.

ExecutionContextAuxData JsonElement?

Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}

IsLiveEdit bool?

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

SourceMapURL string

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

HasSourceURL bool?

True, if this script has sourceURL.

IsModule bool?

True, if this script is ES6 module.

Length long?

This script length.

StackTrace StackTrace

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

CodeOffset long?

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

ScriptLanguage ScriptLanguage?

The language of the script.

DebugSymbols ImmutableArray<DebugSymbols>?

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

EmbedderName string

The name the embedder supplied for this script.

ResolvedBreakpoints ImmutableArray<ResolvedBreakpoint>?

The list of set breakpoints in this script if calls to setBreakpointByUrl matches this script's URL or hash. Clients that use this list can ignore the breakpointResolved event. They are equivalent.

Properties

BuildId

For Wasm modules, the content of the build_id custom section. For JavaScript the debugId magic comment.

public string BuildId { get; init; }

Property Value

string

CodeOffset

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

public long? CodeOffset { get; init; }

Property Value

long?

DebugSymbols

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

public ImmutableArray<DebugSymbols>? DebugSymbols { get; init; }

Property Value

ImmutableArray<DebugSymbols>?

EmbedderName

The name the embedder supplied for this script.

public string? EmbedderName { get; init; }

Property Value

string

EndColumn

Length of the last line of the script.

public long EndColumn { get; init; }

Property Value

long

EndLine

Last line of the script.

public long EndLine { get; init; }

Property Value

long

ExecutionContextAuxData

Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}

public JsonElement? ExecutionContextAuxData { get; init; }

Property Value

JsonElement?

ExecutionContextId

Specifies script creation context.

public ExecutionContextId ExecutionContextId { get; init; }

Property Value

ExecutionContextId

HasSourceURL

True, if this script has sourceURL.

public bool? HasSourceURL { get; init; }

Property Value

bool?

Hash

Content hash of the script, SHA-256.

public string Hash { get; init; }

Property Value

string

IsLiveEdit

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

public bool? IsLiveEdit { get; init; }

Property Value

bool?

IsModule

True, if this script is ES6 module.

public bool? IsModule { get; init; }

Property Value

bool?

Length

This script length.

public long? Length { get; init; }

Property Value

long?

ResolvedBreakpoints

The list of set breakpoints in this script if calls to setBreakpointByUrl matches this script's URL or hash. Clients that use this list can ignore the breakpointResolved event. They are equivalent.

public ImmutableArray<ResolvedBreakpoint>? ResolvedBreakpoints { get; init; }

Property Value

ImmutableArray<ResolvedBreakpoint>?

ScriptId

Identifier of the script parsed.

public ScriptId ScriptId { get; init; }

Property Value

ScriptId

ScriptLanguage

The language of the script.

public ScriptLanguage? ScriptLanguage { get; init; }

Property Value

ScriptLanguage?

SourceMapURL

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

public string? SourceMapURL { get; init; }

Property Value

string

StackTrace

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

public StackTrace? StackTrace { get; init; }

Property Value

StackTrace

StartColumn

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

public long StartColumn { get; init; }

Property Value

long

StartLine

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

public long StartLine { get; init; }

Property Value

long

Url

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

public string Url { get; init; }

Property Value

string