Table of Contents

Class ScriptFailedToParseEventArgs

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

Fired when virtual machine fails to parse the script.

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

Constructors

ScriptFailedToParseEventArgs(ScriptId, string, long, long, long, long, ExecutionContextId, string, string, JsonElement?, string?, bool?, bool?, long?, StackTrace?, long?, ScriptLanguage?, string?)

Fired when virtual machine fails to parse the script.

public ScriptFailedToParseEventArgs(ScriptId ScriptId, string Url, long StartLine, long StartColumn, long EndLine, long EndColumn, ExecutionContextId ExecutionContextId, string Hash, string BuildId, JsonElement? ExecutionContextAuxData = null, string? SourceMapURL = null, bool? HasSourceURL = null, bool? IsModule = null, long? Length = null, StackTrace? StackTrace = null, long? CodeOffset = null, ScriptLanguage? ScriptLanguage = null, string? EmbedderName = 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}

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.

EmbedderName string

The name the embedder supplied for this script.

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?

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

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?

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