puppeteer/new-docs/puppeteer.protocol.debugger.scriptparsedevent.md
2020-07-13 14:01:35 +01:00

3.7 KiB

Home > puppeteer > Protocol > Debugger > ScriptParsedEvent

Protocol.Debugger.ScriptParsedEvent interface

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

Signature:

export interface ScriptParsedEvent 

Properties

Property Type Description
codeOffset integer If the scriptLanguage is WebAssembly, the code section offset in the module.
debugSymbols Debugger.DebugSymbols If the scriptLanguage is WebASsembly, the source of debug symbols for the module.
endColumn integer Length of the last line of the script.
endLine integer Last line of the script.
executionContextAuxData any Embedder-specific auxiliary data.
executionContextId Runtime.ExecutionContextId Specifies script creation context.
hash string Content hash of the script.
hasSourceURL boolean True, if this script has sourceURL.
isLiveEdit boolean True, if this script is generated as a result of the live edit operation.
isModule boolean True, if this script is ES6 module.
length integer This script length.
scriptId Runtime.ScriptId Identifier of the script parsed.
scriptLanguage Debugger.ScriptLanguage The language of the script.
sourceMapURL string URL of source map associated with script (if any).
stackTrace Runtime.StackTrace JavaScript top stack frame of where the script parsed event was triggered if available.
startColumn integer Column offset of the script within the resource with given URL.
startLine integer Line offset of the script within the resource with given URL (for script tags).
url string URL or name of the script parsed (if any).