Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/protocol/Debugger.json

Issue 2035653005: DevTools: split protocol.json into files per domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/v8_inspector/protocol/Debugger.json
diff --git a/third_party/WebKit/Source/platform/v8_inspector/protocol/Debugger.json b/third_party/WebKit/Source/platform/v8_inspector/protocol/Debugger.json
new file mode 100644
index 0000000000000000000000000000000000000000..ca210dae9e8877aadb865a2d6f035d5f233a0ae5
--- /dev/null
+++ b/third_party/WebKit/Source/platform/v8_inspector/protocol/Debugger.json
@@ -0,0 +1,1076 @@
+{
+ "domain": "Debugger",
+ "version": {
+ "major": "1",
+ "minor": "1"
+ },
+ "description": "Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.",
+ "dependencies": [
+ "Runtime"
+ ],
+ "types": [
+ {
+ "id": "BreakpointId",
+ "type": "string",
+ "description": "Breakpoint identifier."
+ },
+ {
+ "id": "CallFrameId",
+ "type": "string",
+ "description": "Call frame identifier."
+ },
+ {
+ "id": "Location",
+ "type": "object",
+ "properties": [
+ {
+ "name": "scriptId",
+ "$ref": "Runtime.ScriptId",
+ "description": "Script identifier as reported in the <code>Debugger.scriptParsed</code>."
+ },
+ {
+ "name": "lineNumber",
+ "type": "integer",
+ "description": "Line number in the script (0-based)."
+ },
+ {
+ "name": "columnNumber",
+ "type": "integer",
+ "optional": true,
+ "description": "Column number in the script (0-based)."
+ }
+ ],
+ "description": "Location in the source code."
+ },
+ {
+ "id": "ScriptPosition",
+ "hidden": true,
+ "type": "object",
+ "properties": [
+ {
+ "name": "line",
+ "type": "integer"
+ },
+ {
+ "name": "column",
+ "type": "integer"
+ }
+ ],
+ "description": "Location in the source code."
+ },
+ {
+ "id": "FunctionDetails",
+ "hidden": true,
+ "type": "object",
+ "properties": [
+ {
+ "name": "location",
+ "$ref": "Location",
+ "optional": true,
+ "description": "Location of the function, none for native functions."
+ },
+ {
+ "name": "functionName",
+ "type": "string",
+ "description": "Name of the function."
+ },
+ {
+ "name": "isGenerator",
+ "type": "boolean",
+ "description": "Whether this is a generator function."
+ },
+ {
+ "name": "scopeChain",
+ "type": "array",
+ "optional": true,
+ "items": {
+ "$ref": "Scope"
+ },
+ "description": "Scope chain for this closure."
+ }
+ ],
+ "description": "Information about the function."
+ },
+ {
+ "id": "GeneratorObjectDetails",
+ "hidden": true,
+ "type": "object",
+ "properties": [
+ {
+ "name": "function",
+ "$ref": "Runtime.RemoteObject",
+ "description": "Generator function."
+ },
+ {
+ "name": "functionName",
+ "type": "string",
+ "description": "Name of the generator function."
+ },
+ {
+ "name": "status",
+ "type": "string",
+ "enum": [
+ "running",
+ "suspended",
+ "closed"
+ ],
+ "description": "Current generator object status."
+ },
+ {
+ "name": "location",
+ "$ref": "Location",
+ "optional": true,
+ "description": "If suspended, location where generator function was suspended (e.g. location of the last 'yield'). Otherwise, location of the generator function."
+ }
+ ],
+ "description": "Information about the generator object."
+ },
+ {
+ "id": "CollectionEntry",
+ "hidden": true,
+ "type": "object",
+ "properties": [
+ {
+ "name": "key",
+ "$ref": "Runtime.RemoteObject",
+ "optional": true,
+ "description": "Entry key of a map-like collection, otherwise not provided."
+ },
+ {
+ "name": "value",
+ "$ref": "Runtime.RemoteObject",
+ "description": "Entry value."
+ }
+ ],
+ "description": "Collection entry."
+ },
+ {
+ "id": "CallFrame",
+ "type": "object",
+ "properties": [
+ {
+ "name": "callFrameId",
+ "$ref": "CallFrameId",
+ "description": "Call frame identifier. This identifier is only valid while the virtual machine is paused."
+ },
+ {
+ "name": "functionName",
+ "type": "string",
+ "description": "Name of the JavaScript function called on this call frame."
+ },
+ {
+ "name": "functionLocation",
+ "$ref": "Location",
+ "optional": true,
+ "hidden": true,
+ "description": "Location in the source code."
+ },
+ {
+ "name": "location",
+ "$ref": "Location",
+ "description": "Location in the source code."
+ },
+ {
+ "name": "scopeChain",
+ "type": "array",
+ "items": {
+ "$ref": "Scope"
+ },
+ "description": "Scope chain for this call frame."
+ },
+ {
+ "name": "this",
+ "$ref": "Runtime.RemoteObject",
+ "description": "<code>this</code> object for this call frame."
+ },
+ {
+ "name": "returnValue",
+ "$ref": "Runtime.RemoteObject",
+ "optional": true,
+ "hidden": true,
+ "description": "The value being returned, if the function is at return point."
+ }
+ ],
+ "description": "JavaScript call frame. Array of call frames form the call stack."
+ },
+ {
+ "id": "Scope",
+ "type": "object",
+ "properties": [
+ {
+ "name": "type",
+ "type": "string",
+ "enum": [
+ "global",
+ "local",
+ "with",
+ "closure",
+ "catch",
+ "block",
+ "script"
+ ],
+ "description": "Scope type."
+ },
+ {
+ "name": "object",
+ "$ref": "Runtime.RemoteObject",
+ "description": "Object representing the scope. For <code>global</code> and <code>with</code> scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties."
+ },
+ {
+ "name": "name",
+ "type": "string",
+ "optional": true,
+ "hidden": true
+ },
+ {
+ "name": "startLocation",
+ "$ref": "Location",
+ "optional": true,
+ "hidden": true,
+ "description": "Location in the source code where scope starts"
+ },
+ {
+ "name": "endLocation",
+ "$ref": "Location",
+ "optional": true,
+ "hidden": true,
+ "description": "Location in the source code where scope ends"
+ }
+ ],
+ "description": "Scope description."
+ },
+ {
+ "id": "SetScriptSourceError",
+ "type": "object",
+ "properties": [
+ {
+ "name": "message",
+ "type": "string",
+ "description": "Compiler error message"
+ },
+ {
+ "name": "lineNumber",
+ "type": "integer",
+ "description": "Compile error line number (1-based)"
+ },
+ {
+ "name": "columnNumber",
+ "type": "integer",
+ "description": "Compile error column number (1-based)"
+ }
+ ],
+ "description": "Error data for setScriptSource command. Contains uncompilable script source error.",
+ "hidden": true
+ },
+ {
+ "id": "SearchMatch",
+ "type": "object",
+ "description": "Search match for resource.",
+ "properties": [
+ {
+ "name": "lineNumber",
+ "type": "number",
+ "description": "Line number in resource content."
+ },
+ {
+ "name": "lineContent",
+ "type": "string",
+ "description": "Line with match content."
+ }
+ ],
+ "hidden": true
+ }
+ ],
+ "commands": [
+ {
+ "name": "enable",
+ "description": "Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received."
+ },
+ {
+ "name": "disable",
+ "description": "Disables debugger for given page."
+ },
+ {
+ "name": "setBreakpointsActive",
+ "parameters": [
+ {
+ "name": "active",
+ "type": "boolean",
+ "description": "New value for breakpoints active state."
+ }
+ ],
+ "description": "Activates / deactivates all breakpoints on the page."
+ },
+ {
+ "name": "setSkipAllPauses",
+ "hidden": true,
+ "parameters": [
+ {
+ "name": "skipped",
+ "type": "boolean",
+ "description": "New value for skip pauses state."
+ }
+ ],
+ "description": "Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc)."
+ },
+ {
+ "name": "setBreakpointByUrl",
+ "parameters": [
+ {
+ "name": "lineNumber",
+ "type": "integer",
+ "description": "Line number to set breakpoint at."
+ },
+ {
+ "name": "url",
+ "type": "string",
+ "optional": true,
+ "description": "URL of the resources to set breakpoint on."
+ },
+ {
+ "name": "urlRegex",
+ "type": "string",
+ "optional": true,
+ "description": "Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified."
+ },
+ {
+ "name": "columnNumber",
+ "type": "integer",
+ "optional": true,
+ "description": "Offset in the line to set breakpoint at."
+ },
+ {
+ "name": "condition",
+ "type": "string",
+ "optional": true,
+ "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true."
+ }
+ ],
+ "returns": [
+ {
+ "name": "breakpointId",
+ "$ref": "BreakpointId",
+ "description": "Id of the created breakpoint for further reference."
+ },
+ {
+ "name": "locations",
+ "type": "array",
+ "items": {
+ "$ref": "Location"
+ },
+ "description": "List of the locations this breakpoint resolved into upon addition."
+ }
+ ],
+ "description": "Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads."
+ },
+ {
+ "name": "setBreakpoint",
+ "parameters": [
+ {
+ "name": "location",
+ "$ref": "Location",
+ "description": "Location to set breakpoint in."
+ },
+ {
+ "name": "condition",
+ "type": "string",
+ "optional": true,
+ "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true."
+ }
+ ],
+ "returns": [
+ {
+ "name": "breakpointId",
+ "$ref": "BreakpointId",
+ "description": "Id of the created breakpoint for further reference."
+ },
+ {
+ "name": "actualLocation",
+ "$ref": "Location",
+ "description": "Location this breakpoint resolved into."
+ }
+ ],
+ "description": "Sets JavaScript breakpoint at a given location."
+ },
+ {
+ "name": "removeBreakpoint",
+ "parameters": [
+ {
+ "name": "breakpointId",
+ "$ref": "BreakpointId"
+ }
+ ],
+ "description": "Removes JavaScript breakpoint."
+ },
+ {
+ "name": "continueToLocation",
+ "parameters": [
+ {
+ "name": "location",
+ "$ref": "Location",
+ "description": "Location to continue to."
+ },
+ {
+ "name": "interstatementLocation",
+ "type": "boolean",
+ "optional": true,
+ "hidden": true,
+ "description": "Allows breakpoints at the intemediate positions inside statements."
+ }
+ ],
+ "description": "Continues execution until specific location is reached."
+ },
+ {
+ "name": "stepOver",
+ "description": "Steps over the statement."
+ },
+ {
+ "name": "stepInto",
+ "description": "Steps into the function call."
+ },
+ {
+ "name": "stepOut",
+ "description": "Steps out of the function call."
+ },
+ {
+ "name": "pause",
+ "description": "Stops on the next JavaScript statement."
+ },
+ {
+ "name": "resume",
+ "description": "Resumes JavaScript execution."
+ },
+ {
+ "name": "searchInContent",
+ "parameters": [
+ {
+ "name": "scriptId",
+ "$ref": "Runtime.ScriptId",
+ "description": "Id of the script to search in."
+ },
+ {
+ "name": "query",
+ "type": "string",
+ "description": "String to search for."
+ },
+ {
+ "name": "caseSensitive",
+ "type": "boolean",
+ "optional": true,
+ "description": "If true, search is case sensitive."
+ },
+ {
+ "name": "isRegex",
+ "type": "boolean",
+ "optional": true,
+ "description": "If true, treats string parameter as regex."
+ }
+ ],
+ "returns": [
+ {
+ "name": "result",
+ "type": "array",
+ "items": {
+ "$ref": "SearchMatch"
+ },
+ "description": "List of search matches."
+ }
+ ],
+ "description": "Searches for given string in script content."
+ },
+ {
+ "name": "canSetScriptSource",
+ "returns": [
+ {
+ "name": "result",
+ "type": "boolean",
+ "description": "True if <code>setScriptSource</code> is supported."
+ }
+ ],
+ "description": "Always returns true."
+ },
+ {
+ "name": "setScriptSource",
+ "parameters": [
+ {
+ "name": "scriptId",
+ "$ref": "Runtime.ScriptId",
+ "description": "Id of the script to edit."
+ },
+ {
+ "name": "scriptSource",
+ "type": "string",
+ "description": "New content of the script."
+ },
+ {
+ "name": "preview",
+ "type": "boolean",
+ "optional": true,
+ "description": " If true the change will not actually be applied. Preview mode may be used to get result description without actually modifying the code.",
+ "hidden": true
+ }
+ ],
+ "returns": [
+ {
+ "name": "callFrames",
+ "type": "array",
+ "optional": true,
+ "items": {
+ "$ref": "CallFrame"
+ },
+ "description": "New stack trace in case editing has happened while VM was stopped."
+ },
+ {
+ "name": "stackChanged",
+ "type": "boolean",
+ "optional": true,
+ "description": "Whether current call stack was modified after applying the changes.",
+ "hidden": true
+ },
+ {
+ "name": "asyncStackTrace",
+ "$ref": "Runtime.StackTrace",
+ "optional": true,
+ "description": "Async stack trace, if any.",
+ "hidden": true
+ },
+ {
+ "name": "compileError",
+ "optional": true,
+ "$ref": "SetScriptSourceError",
+ "description": "Error data if any."
+ }
+ ],
+ "description": "Edits JavaScript source live."
+ },
+ {
+ "name": "restartFrame",
+ "parameters": [
+ {
+ "name": "callFrameId",
+ "$ref": "CallFrameId",
+ "description": "Call frame identifier to evaluate on."
+ }
+ ],
+ "returns": [
+ {
+ "name": "callFrames",
+ "type": "array",
+ "items": {
+ "$ref": "CallFrame"
+ },
+ "description": "New stack trace."
+ },
+ {
+ "name": "asyncStackTrace",
+ "$ref": "Runtime.StackTrace",
+ "optional": true,
+ "description": "Async stack trace, if any."
+ }
+ ],
+ "hidden": true,
+ "description": "Restarts particular call frame from the beginning."
+ },
+ {
+ "name": "getScriptSource",
+ "parameters": [
+ {
+ "name": "scriptId",
+ "$ref": "Runtime.ScriptId",
+ "description": "Id of the script to get source for."
+ }
+ ],
+ "returns": [
+ {
+ "name": "scriptSource",
+ "type": "string",
+ "description": "Script source."
+ }
+ ],
+ "description": "Returns source for the script with given id."
+ },
+ {
+ "name": "getFunctionDetails",
+ "hidden": true,
+ "parameters": [
+ {
+ "name": "functionId",
+ "$ref": "Runtime.RemoteObjectId",
+ "description": "Id of the function to get details for."
+ }
+ ],
+ "returns": [
+ {
+ "name": "details",
+ "$ref": "FunctionDetails",
+ "description": "Information about the function."
+ }
+ ],
+ "description": "Returns detailed information on given function."
+ },
+ {
+ "name": "getGeneratorObjectDetails",
+ "hidden": true,
+ "parameters": [
+ {
+ "name": "objectId",
+ "$ref": "Runtime.RemoteObjectId",
+ "description": "Id of the generator object to get details for."
+ }
+ ],
+ "returns": [
+ {
+ "name": "details",
+ "$ref": "GeneratorObjectDetails",
+ "description": "Information about the generator object."
+ }
+ ],
+ "description": "Returns detailed information on given generator object."
+ },
+ {
+ "name": "getCollectionEntries",
+ "hidden": true,
+ "parameters": [
+ {
+ "name": "objectId",
+ "$ref": "Runtime.RemoteObjectId",
+ "description": "Id of the collection to get entries for."
+ }
+ ],
+ "returns": [
+ {
+ "name": "entries",
+ "type": "array",
+ "items": {
+ "$ref": "CollectionEntry"
+ },
+ "description": "Array of collection entries."
+ }
+ ],
+ "description": "Returns entries of given collection."
+ },
+ {
+ "name": "setPauseOnExceptions",
+ "parameters": [
+ {
+ "name": "state",
+ "type": "string",
+ "enum": [
+ "none",
+ "uncaught",
+ "all"
+ ],
+ "description": "Pause on exceptions mode."
+ }
+ ],
+ "description": "Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>."
+ },
+ {
+ "name": "evaluateOnCallFrame",
+ "parameters": [
+ {
+ "name": "callFrameId",
+ "$ref": "CallFrameId",
+ "description": "Call frame identifier to evaluate on."
+ },
+ {
+ "name": "expression",
+ "type": "string",
+ "description": "Expression to evaluate."
+ },
+ {
+ "name": "objectGroup",
+ "type": "string",
+ "optional": true,
+ "description": "String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>)."
+ },
+ {
+ "name": "includeCommandLineAPI",
+ "type": "boolean",
+ "optional": true,
+ "description": "Specifies whether command line API should be available to the evaluated expression, defaults to false.",
+ "hidden": true
+ },
+ {
+ "name": "doNotPauseOnExceptionsAndMuteConsole",
+ "type": "boolean",
+ "optional": true,
+ "description": "Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state.",
+ "hidden": true
+ },
+ {
+ "name": "returnByValue",
+ "type": "boolean",
+ "optional": true,
+ "description": "Whether the result is expected to be a JSON object that should be sent by value."
+ },
+ {
+ "name": "generatePreview",
+ "type": "boolean",
+ "optional": true,
+ "hidden": true,
+ "description": "Whether preview should be generated for the result."
+ }
+ ],
+ "returns": [
+ {
+ "name": "result",
+ "$ref": "Runtime.RemoteObject",
+ "description": "Object wrapper for the evaluation result."
+ },
+ {
+ "name": "wasThrown",
+ "type": "boolean",
+ "optional": true,
+ "description": "True if the result was thrown during the evaluation."
+ },
+ {
+ "name": "exceptionDetails",
+ "$ref": "Runtime.ExceptionDetails",
+ "optional": true,
+ "hidden": true,
+ "description": "Exception details."
+ }
+ ],
+ "description": "Evaluates expression on a given call frame."
+ },
+ {
+ "name": "setVariableValue",
+ "parameters": [
+ {
+ "name": "scopeNumber",
+ "type": "integer",
+ "description": "0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually."
+ },
+ {
+ "name": "variableName",
+ "type": "string",
+ "description": "Variable name."
+ },
+ {
+ "name": "newValue",
+ "$ref": "Runtime.CallArgument",
+ "description": "New variable value."
+ },
+ {
+ "name": "callFrameId",
+ "$ref": "CallFrameId",
+ "description": "Id of callframe that holds variable."
+ }
+ ],
+ "hidden": true,
+ "description": "Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually."
+ },
+ {
+ "name": "getBacktrace",
+ "returns": [
+ {
+ "name": "callFrames",
+ "type": "array",
+ "items": {
+ "$ref": "CallFrame"
+ },
+ "description": "Call stack the virtual machine stopped on."
+ },
+ {
+ "name": "asyncStackTrace",
+ "$ref": "Runtime.StackTrace",
+ "optional": true,
+ "description": "Async stack trace, if any."
+ }
+ ],
+ "hidden": true,
+ "description": "Returns call stack including variables changed since VM was paused. VM must be paused."
+ },
+ {
+ "name": "setAsyncCallStackDepth",
+ "parameters": [
+ {
+ "name": "maxDepth",
+ "type": "integer",
+ "description": "Maximum depth of async call stacks. Setting to <code>0</code> will effectively disable collecting async call stacks (default)."
+ }
+ ],
+ "hidden": true,
+ "description": "Enables or disables async call stacks tracking."
+ },
+ {
+ "name": "setBlackboxPatterns",
+ "parameters": [
+ {
+ "name": "patterns",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Array of regexps that will be used to check script url for blackbox state."
+ }
+ ],
+ "hidden": true,
+ "description": "Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful."
+ },
+ {
+ "name": "setBlackboxedRanges",
+ "parameters": [
+ {
+ "name": "scriptId",
+ "$ref": "Runtime.ScriptId",
+ "description": "Id of the script."
+ },
+ {
+ "name": "positions",
+ "type": "array",
+ "items": {
+ "$ref": "ScriptPosition"
+ }
+ }
+ ],
+ "hidden": true,
+ "description": "Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted."
+ }
+ ],
+ "events": [
+ {
+ "name": "scriptParsed",
+ "parameters": [
+ {
+ "name": "scriptId",
+ "$ref": "Runtime.ScriptId",
+ "description": "Identifier of the script parsed."
+ },
+ {
+ "name": "url",
+ "type": "string",
+ "description": "URL or name of the script parsed (if any)."
+ },
+ {
+ "name": "startLine",
+ "type": "integer",
+ "description": "Line offset of the script within the resource with given URL (for script tags)."
+ },
+ {
+ "name": "startColumn",
+ "type": "integer",
+ "description": "Column offset of the script within the resource with given URL."
+ },
+ {
+ "name": "endLine",
+ "type": "integer",
+ "description": "Last line of the script."
+ },
+ {
+ "name": "endColumn",
+ "type": "integer",
+ "description": "Length of the last line of the script."
+ },
+ {
+ "name": "executionContextId",
+ "$ref": "Runtime.ExecutionContextId",
+ "description": "Specifies script creation context.",
+ "hidden": true
+ },
+ {
+ "name": "hash",
+ "type": "string",
+ "hidden": true,
+ "description": "Content hash of the script."
+ },
+ {
+ "name": "isContentScript",
+ "type": "boolean",
+ "optional": true,
+ "description": "Determines whether this script is a user extension script."
+ },
+ {
+ "name": "isInternalScript",
+ "type": "boolean",
+ "optional": true,
+ "description": "Determines whether this script is an internal script.",
+ "hidden": true
+ },
+ {
+ "name": "isLiveEdit",
+ "type": "boolean",
+ "optional": true,
+ "description": "True, if this script is generated as a result of the live edit operation.",
+ "hidden": true
+ },
+ {
+ "name": "sourceMapURL",
+ "type": "string",
+ "optional": true,
+ "description": "URL of source map associated with script (if any)."
+ },
+ {
+ "name": "hasSourceURL",
+ "type": "boolean",
+ "optional": true,
+ "description": "True, if this script has sourceURL.",
+ "hidden": true
+ },
+ {
+ "name": "deprecatedCommentWasUsed",
+ "type": "boolean",
+ "optional": true,
+ "hidden": true,
+ "description": "True, if '//@ sourceURL' or '//@ sourceMappingURL' was used."
+ }
+ ],
+ "description": "Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger."
+ },
+ {
+ "name": "scriptFailedToParse",
+ "parameters": [
+ {
+ "name": "scriptId",
+ "$ref": "Runtime.ScriptId",
+ "description": "Identifier of the script parsed."
+ },
+ {
+ "name": "url",
+ "type": "string",
+ "description": "URL or name of the script parsed (if any)."
+ },
+ {
+ "name": "startLine",
+ "type": "integer",
+ "description": "Line offset of the script within the resource with given URL (for script tags)."
+ },
+ {
+ "name": "startColumn",
+ "type": "integer",
+ "description": "Column offset of the script within the resource with given URL."
+ },
+ {
+ "name": "endLine",
+ "type": "integer",
+ "description": "Last line of the script."
+ },
+ {
+ "name": "endColumn",
+ "type": "integer",
+ "description": "Length of the last line of the script."
+ },
+ {
+ "name": "executionContextId",
+ "$ref": "Runtime.ExecutionContextId",
+ "description": "Specifies script creation context.",
+ "hidden": true
+ },
+ {
+ "name": "hash",
+ "type": "string",
+ "hidden": true,
+ "description": "Content hash of the script."
+ },
+ {
+ "name": "isContentScript",
+ "type": "boolean",
+ "optional": true,
+ "description": "Determines whether this script is a user extension script."
+ },
+ {
+ "name": "isInternalScript",
+ "type": "boolean",
+ "optional": true,
+ "description": "Determines whether this script is an internal script.",
+ "hidden": true
+ },
+ {
+ "name": "sourceMapURL",
+ "type": "string",
+ "optional": true,
+ "description": "URL of source map associated with script (if any)."
+ },
+ {
+ "name": "hasSourceURL",
+ "type": "boolean",
+ "optional": true,
+ "description": "True, if this script has sourceURL.",
+ "hidden": true
+ },
+ {
+ "name": "deprecatedCommentWasUsed",
+ "type": "boolean",
+ "optional": true,
+ "hidden": true,
+ "description": "True, if '//@ sourceURL' or '//@ sourceMappingURL' was used."
+ }
+ ],
+ "description": "Fired when virtual machine fails to parse the script."
+ },
+ {
+ "name": "breakpointResolved",
+ "parameters": [
+ {
+ "name": "breakpointId",
+ "$ref": "BreakpointId",
+ "description": "Breakpoint unique identifier."
+ },
+ {
+ "name": "location",
+ "$ref": "Location",
+ "description": "Actual breakpoint location."
+ }
+ ],
+ "description": "Fired when breakpoint is resolved to an actual script and location."
+ },
+ {
+ "name": "paused",
+ "parameters": [
+ {
+ "name": "callFrames",
+ "type": "array",
+ "items": {
+ "$ref": "CallFrame"
+ },
+ "description": "Call stack the virtual machine stopped on."
+ },
+ {
+ "name": "reason",
+ "type": "string",
+ "enum": [
+ "XHR",
+ "DOM",
+ "EventListener",
+ "exception",
+ "assert",
+ "CSPViolation",
+ "debugCommand",
+ "promiseRejection",
+ "other"
+ ],
+ "description": "Pause reason."
+ },
+ {
+ "name": "data",
+ "type": "object",
+ "optional": true,
+ "description": "Object containing break-specific auxiliary properties."
+ },
+ {
+ "name": "hitBreakpoints",
+ "type": "array",
+ "optional": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "Hit breakpoints IDs",
+ "hidden": true
+ },
+ {
+ "name": "asyncStackTrace",
+ "$ref": "Runtime.StackTrace",
+ "optional": true,
+ "description": "Async stack trace, if any.",
+ "hidden": true
+ }
+ ],
+ "description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria."
+ },
+ {
+ "name": "resumed",
+ "description": "Fired when the virtual machine resumed execution."
+ }
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698