Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface Protocol.Debugger.ScriptParsedEvent
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { ScriptParsedEvent } = Protocol.Debugger;

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

Properties

Identifier of the script parsed.

url: string

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

startLine: integer

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

startColumn: integer

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

endLine: integer

Last line of the script.

endColumn: integer

Length of the last line of the script.

executionContextId: Runtime.ExecutionContextId

Specifies script creation context.

hash: string

Content hash of the script.

optional
executionContextAuxData: any

Embedder-specific auxiliary data.

optional
isLiveEdit: boolean

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

optional
sourceMapURL: string

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

optional
hasSourceURL: boolean

True, if this script has sourceURL.

optional
isModule: boolean

True, if this script is ES6 module.

optional
length: integer

This script length.

optional
stackTrace: Runtime.StackTrace

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

optional
codeOffset: integer

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

optional
scriptLanguage: Debugger.ScriptLanguage

The language of the script.

optional
debugSymbols: Debugger.DebugSymbols

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

optional
embedderName: string

The name the embedder supplied for this script.