{"name":"domains","type":"array","items":{"$ref":"Domain"},"description":"List of supported domains."}
]
}
]
},
{
"domain":"Runtime",
"domain":"Runtime",
"description":"Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.",
"description":"Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.",
"types":[
"types":[
@ -143,12 +171,15 @@
"experimental":true,
"experimental":true,
"description":"Detailed information about exception (or error) that was thrown during script compilation or execution.",
"description":"Detailed information about exception (or error) that was thrown during script compilation or execution.",
{"name":"scriptId","$ref":"ScriptId","description":"Script ID of the exception location."},
{"name":"text","type":"string","description":"Exception text, which should be used together with exception object when available."},
{"name":"lineNumber","type":"integer","description":"Line number of the exception location (0-based)."},
{"name":"lineNumber","type":"integer","description":"Line number of the exception location (0-based)."},
{"name":"columnNumber","type":"integer","description":"Column number of the exception location (0-based)."},
{"name":"columnNumber","type":"integer","description":"Column number of the exception location (0-based)."},
{"name":"scriptId","$ref":"ScriptId","optional":true,"description":"Script ID of the exception location."},
{"name":"url","type":"string","optional":true,"description":"URL of the exception location, to be used when the script was not reported."},
{"name":"url","type":"string","optional":true,"description":"URL of the exception location, to be used when the script was not reported."},
{"name":"stackTrace","$ref":"StackTrace","optional":true,"description":"JavaScript stack trace if available."}
{"name":"stackTrace","$ref":"StackTrace","optional":true,"description":"JavaScript stack trace if available."},
{"name":"exception","$ref":"RemoteObject","optional":true,"description":"Exception object if available."},
{"name":"executionContextId","$ref":"ExecutionContextId","optional":true,"description":"Identifier of the context where exception happened."}
]
]
},
},
{
{
@ -189,7 +220,7 @@
{"name":"expression","type":"string","description":"Expression to evaluate."},
{"name":"expression","type":"string","description":"Expression to evaluate."},
{"name":"objectGroup","type":"string","optional":true,"description":"Symbolic group name that can be used to release multiple objects."},
{"name":"objectGroup","type":"string","optional":true,"description":"Symbolic group name that can be used to release multiple objects."},
{"name":"includeCommandLineAPI","type":"boolean","optional":true,"description":"Determines whether Command Line API should be available during the evaluation.","experimental":true},
{"name":"includeCommandLineAPI","type":"boolean","optional":true,"description":"Determines whether Command Line API should be available during the evaluation.","experimental":true},
{"name":"doNotPauseOnExceptionsAndMuteConsole","type":"boolean","optional":true,"description":"Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state.","experimental":true},
{"name":"silent","type":"boolean","optional":true,"description":"In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.","experimental":true},
{"name":"contextId","$ref":"ExecutionContextId","optional":true,"description":"Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page."},
{"name":"contextId","$ref":"ExecutionContextId","optional":true,"description":"Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page."},
{"name":"returnByValue","type":"boolean","optional":true,"description":"Whether the result is expected to be a JSON object that should be sent by value."},
{"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,"experimental":true,"description":"Whether preview should be generated for the result."},
{"name":"generatePreview","type":"boolean","optional":true,"experimental":true,"description":"Whether preview should be generated for the result."},
"description":"Evaluates expression on global object."
"description":"Evaluates expression on global object."
@ -214,7 +244,6 @@
],
],
"returns":[
"returns":[
{"name":"result","$ref":"RemoteObject","description":"Promise result. Will contain rejected value if promise was rejected."},
{"name":"result","$ref":"RemoteObject","description":"Promise result. Will contain rejected value if promise was rejected."},
{"name":"wasThrown","type":"boolean","optional":true,"description":"True if the promise was rejected."},
{"name":"exceptionDetails","$ref":"ExceptionDetails","optional":true,"description":"Exception details if stack strace is available."}
{"name":"exceptionDetails","$ref":"ExceptionDetails","optional":true,"description":"Exception details if stack strace is available."}
],
],
"description":"Add handler to promise with given promise object id."
"description":"Add handler to promise with given promise object id."
@ -226,7 +255,7 @@
{"name":"objectId","$ref":"RemoteObjectId","description":"Identifier of the object to call function on."},
{"name":"objectId","$ref":"RemoteObjectId","description":"Identifier of the object to call function on."},
{"name":"functionDeclaration","type":"string","description":"Declaration of the function to call."},
{"name":"functionDeclaration","type":"string","description":"Declaration of the function to call."},
{"name":"arguments","type":"array","items":{"$ref":"CallArgument","description":"Call argument."},"optional":true,"description":"Call arguments. All call arguments must belong to the same JavaScript world as the target object."},
{"name":"arguments","type":"array","items":{"$ref":"CallArgument","description":"Call argument."},"optional":true,"description":"Call arguments. All call arguments must belong to the same JavaScript world as the target object."},
{"name":"doNotPauseOnExceptionsAndMuteConsole","type":"boolean","optional":true,"description":"Specifies whether function call should stop on exceptions and mute console. Overrides setPauseOnException state.","experimental":true},
{"name":"silent","type":"boolean","optional":true,"description":"In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.","experimental":true},
{"name":"returnByValue","type":"boolean","optional":true,"description":"Whether the result is expected to be a JSON object which should be sent by value."},
{"name":"returnByValue","type":"boolean","optional":true,"description":"Whether the result is expected to be a JSON object which should be sent by value."},
{"name":"generatePreview","type":"boolean","optional":true,"experimental":true,"description":"Whether preview should be generated for the result."},
{"name":"generatePreview","type":"boolean","optional":true,"experimental":true,"description":"Whether preview should be generated for the result."},
{"name":"userGesture","type":"boolean","optional":true,"experimental":true,"description":"Whether execution should be treated as initiated by user in the UI."},
{"name":"userGesture","type":"boolean","optional":true,"experimental":true,"description":"Whether execution should be treated as initiated by user in the UI."},
"description":"Calls function with given declaration on the given object. Object group of the result is inherited from the target object."
"description":"Calls function with given declaration on the given object. Object group of the result is inherited from the target object."
@ -269,9 +297,9 @@
"description":"Releases all remote objects that belong to a given group."
"description":"Releases all remote objects that belong to a given group."
},
},
{
{
"name":"run",
"name":"runIfWaitingForDebugger",
"experimental":true,
"experimental":true,
"description":"Tells inspected instance(worker or page) that it can run in case it was started paused."
"description":"Tells inspected instance to run if it was waiting for debugger to attach."
},
},
{
{
"name":"enable",
"name":"enable",
@ -320,7 +348,7 @@
{"name":"scriptId","$ref":"ScriptId","description":"Id of the script to run."},
{"name":"scriptId","$ref":"ScriptId","description":"Id of the script to run."},
{"name":"executionContextId","$ref":"ExecutionContextId","optional":true,"description":"Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page."},
{"name":"executionContextId","$ref":"ExecutionContextId","optional":true,"description":"Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page."},
{"name":"objectGroup","type":"string","optional":true,"description":"Symbolic group name that can be used to release multiple objects."},
{"name":"objectGroup","type":"string","optional":true,"description":"Symbolic group name that can be used to release multiple objects."},
{"name":"doNotPauseOnExceptionsAndMuteConsole","type":"boolean","optional":true,"description":"Specifies whether script run should stop on exceptions and mute console. Overrides setPauseOnException state."},
{"name":"silent","type":"boolean","optional":true,"description":"In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.","experimental":true},
{"name":"includeCommandLineAPI","type":"boolean","optional":true,"description":"Determines whether Command Line API should be available during the evaluation."},
{"name":"includeCommandLineAPI","type":"boolean","optional":true,"description":"Determines whether Command Line API should be available during the evaluation."},
{"name":"returnByValue","type":"boolean","optional":true,"description":"Whether the result is expected to be a JSON object which should be sent by value."},
{"name":"returnByValue","type":"boolean","optional":true,"description":"Whether the result is expected to be a JSON object which should be sent by value."},
{"name":"generatePreview","type":"boolean","optional":true,"description":"Whether preview should be generated for the result."},
{"name":"generatePreview","type":"boolean","optional":true,"description":"Whether preview should be generated for the result."},
{"name":"executionContextId","$ref":"ExecutionContextId","optional":true,"description":"Identifier of the context where exception happened."}
],
],
"experimental":true
"experimental":true
},
},
@ -369,7 +393,7 @@
"name":"exceptionRevoked",
"name":"exceptionRevoked",
"description":"Issued when unhandled exception was revoked.",
"description":"Issued when unhandled exception was revoked.",
"parameters":[
"parameters":[
{"name":"message","type":"string","description":"Message describing why exception was revoked."},
{"name":"reason","type":"string","description":"Reason describing why exception was revoked."},
{"name":"exceptionId","type":"integer","description":"The id of revoked exception, as reported in <code>exceptionUnhandled</code>."}
{"name":"exceptionId","type":"integer","description":"The id of revoked exception, as reported in <code>exceptionUnhandled</code>."}
],
],
"experimental":true
"experimental":true
@ -388,6 +412,7 @@
},
},
{
{
"name":"inspectRequested",
"name":"inspectRequested",
"description":"Issued when object should be inspected (for example, as a result of inspect() command line API call).",
"parameters":[
"parameters":[
{"name":"object","$ref":"RemoteObject"},
{"name":"object","$ref":"RemoteObject"},
{"name":"hints","type":"object"}
{"name":"hints","type":"object"}
@ -489,7 +514,7 @@
"name":"setSkipAllPauses",
"name":"setSkipAllPauses",
"experimental":true,
"experimental":true,
"parameters":[
"parameters":[
{"name":"skipped","type":"boolean","description":"New value for skip pauses state."}
{"name":"skip","type":"boolean","description":"New value for skip pauses state."}
],
],
"description":"Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc)."
"description":"Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc)."
},
},
@ -530,8 +555,7 @@
{
{
"name":"continueToLocation",
"name":"continueToLocation",
"parameters":[
"parameters":[
{"name":"location","$ref":"Location","description":"Location to continue to."},
{"name":"location","$ref":"Location","description":"Location to continue to."}
{"name":"interstatementLocation","type":"boolean","optional":true,"experimental":true,"description":"Allows breakpoints at the intemediate positions inside statements."}
],
],
"description":"Continues execution until specific location is reached."
"description":"Continues execution until specific location is reached."
},
},
@ -568,25 +592,18 @@
],
],
"description":"Searches for given string in script content."
"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",
"name":"setScriptSource",
"parameters":[
"parameters":[
{"name":"scriptId","$ref":"Runtime.ScriptId","description":"Id of the script to edit."},
{"name":"scriptId","$ref":"Runtime.ScriptId","description":"Id of the script to edit."},
{"name":"scriptSource","type":"string","description":"New content of the script."},
{"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.","experimental":true}
{"name":"dryRun","type":"boolean","optional":true,"description":" If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.","experimental":true}
],
],
"returns":[
"returns":[
{"name":"callFrames","type":"array","optional":true,"items":{"$ref":"CallFrame"},"description":"New stack trace in case editing has happened while VM was stopped."},
{"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.","experimental":true},
{"name":"stackChanged","type":"boolean","optional":true,"description":"Whether current call stack was modified after applying the changes.","experimental":true},
{"name":"asyncStackTrace","$ref":"Runtime.StackTrace","optional":true,"description":"Async stack trace, if any.","experimental":true},
{"name":"asyncStackTrace","$ref":"Runtime.StackTrace","optional":true,"description":"Async stack trace, if any.","experimental":true},
{"name":"compileError","optional":true,"$ref":"Runtime.ExceptionDetails","description":"Error data if any."}
{"name":"exceptionDetails","optional":true,"$ref":"Runtime.ExceptionDetails","description":"Exception details if any."}
],
],
"description":"Edits JavaScript source live."
"description":"Edits JavaScript source live."
},
},
@ -626,13 +643,12 @@
{"name":"expression","type":"string","description":"Expression to evaluate."},
{"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":"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.","experimental":true},
{"name":"includeCommandLineAPI","type":"boolean","optional":true,"description":"Specifies whether command line API should be available to the evaluated expression, defaults to false.","experimental":true},
{"name":"doNotPauseOnExceptionsAndMuteConsole","type":"boolean","optional":true,"description":"Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state.","experimental":true},
{"name":"silent","type":"boolean","optional":true,"description":"In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.","experimental":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":"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,"experimental":true,"description":"Whether preview should be generated for the result."}
{"name":"generatePreview","type":"boolean","optional":true,"experimental":true,"description":"Whether preview should be generated for the result."}
],
],
"returns":[
"returns":[
{"name":"result","$ref":"Runtime.RemoteObject","description":"Object wrapper for the evaluation result."},
{"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":"isInternalScript","type":"boolean","optional":true,"description":"Determines whether this script is an internal script.","experimental":true},
{"name":"isLiveEdit","type":"boolean","optional":true,"description":"True, if this script is generated as a result of the live edit operation.","experimental":true},
{"name":"isLiveEdit","type":"boolean","optional":true,"description":"True, if this script is generated as a result of the live edit operation.","experimental":true},
{"name":"sourceMapURL","type":"string","optional":true,"description":"URL of source map associated with script (if any)."},
{"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.","experimental":true},
{"name":"hasSourceURL","type":"boolean","optional":true,"description":"True, if this script has sourceURL.","experimental":true}
{"name":"deprecatedCommentWasUsed","type":"boolean","optional":true,"experimental":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."
"description":"Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger."
{"name":"isInternalScript","type":"boolean","optional":true,"description":"Determines whether this script is an internal script.","experimental":true},
{"name":"sourceMapURL","type":"string","optional":true,"description":"URL of source map associated with script (if any)."},
{"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.","experimental":true},
{"name":"hasSourceURL","type":"boolean","optional":true,"description":"True, if this script has sourceURL.","experimental":true}
{"name":"deprecatedCommentWasUsed","type":"boolean","optional":true,"experimental":true,"description":"True, if '//@ sourceURL' or '//@ sourceMappingURL' was used."}
],
],
"description":"Fired when virtual machine fails to parse the script."
"description":"Fired when virtual machine fails to parse the script."
},
},
@ -789,20 +792,6 @@
{"name":"message","$ref":"ConsoleMessage","description":"Console message that has been added."}
{"name":"message","$ref":"ConsoleMessage","description":"Console message that has been added."}
],
],
"description":"Issued when new console message is added."
"description":"Issued when new console message is added."
{"name":"deoptReason","type":"string","description":"The reason of being not optimized. The function may be deoptimized or marked as don't optimize."},
{"name":"deoptReason","type":"string","optional":true,"description":"The reason of being not optimized. The function may be deoptimized or marked as don't optimize."},
{"name":"id","type":"integer","description":"Unique id of the node."},
{"name":"positionTicks","type":"array","items":{"$ref":"PositionTickInfo"},"optional":true,"experimental":true,"description":"An array of source position ticks."}
{"name":"positionTicks","type":"array","items":{"$ref":"PositionTickInfo"},"description":"An array of source position ticks."}
]
]
},
},
{
{
@ -829,16 +818,17 @@
"type":"object",
"type":"object",
"description":"Profile.",
"description":"Profile.",
"properties":[
"properties":[
{"name":"head","$ref":"CPUProfileNode"},
{"name":"nodes","type":"array","items":{"$ref":"CPUProfileNode"},"description":"The list of profile nodes. First item is the root node."},
{"name":"startTime","type":"number","description":"Profiling start time in seconds."},
{"name":"startTime","type":"number","description":"Profiling start timestamp in microseconds."},
{"name":"endTime","type":"number","description":"Profiling end time in seconds."},
{"name":"endTime","type":"number","description":"Profiling end timestamp in microseconds."},
{"name":"samples","optional":true,"type":"array","items":{"type":"integer"},"description":"Ids of samples top nodes."},
{"name":"samples","optional":true,"type":"array","items":{"type":"integer"},"description":"Ids of samples top nodes."},
{"name":"timestamps","optional":true,"type":"array","items":{"type":"number"},"description":"Timestamps of the samples in microseconds."}
{"name":"timestampDeltas","optional":true,"type":"array","items":{"type":"integer"},"description":"Deltas between adjacent sample timestamps in microseconds. The first delta is relative to the profile startTime."}
]
]
},
},
{
{
"id":"PositionTickInfo",
"id":"PositionTickInfo",
"type":"object",
"type":"object",
"experimental":true,
"description":"Specifies a number of samples attributed to a certain source position.",
"description":"Specifies a number of samples attributed to a certain source position.",
"properties":[
"properties":[
{"name":"line","type":"integer","description":"Source line number (1-based)."},
{"name":"line","type":"integer","description":"Source line number (1-based)."},
@ -876,7 +866,7 @@
"parameters":[
"parameters":[
{"name":"id","type":"string"},
{"name":"id","type":"string"},
{"name":"location","$ref":"Debugger.Location","description":"Location of console.profile()."},
{"name":"location","$ref":"Debugger.Location","description":"Location of console.profile()."},
{"name":"title","type":"string","optional":true,"description":"Profile title passed as argument to console.profile()."}
{"name":"title","type":"string","optional":true,"description":"Profile title passed as an argument to console.profile()."}
],
],
"description":"Sent when new profile recodring is started using console.profile() call."
"description":"Sent when new profile recodring is started using console.profile() call."
},
},
@ -886,7 +876,7 @@
{"name":"id","type":"string"},
{"name":"id","type":"string"},
{"name":"location","$ref":"Debugger.Location","description":"Location of console.profileEnd()."},
{"name":"location","$ref":"Debugger.Location","description":"Location of console.profileEnd()."},
{"name":"profile","$ref":"CPUProfile"},
{"name":"profile","$ref":"CPUProfile"},
{"name":"title","type":"string","optional":true,"description":"Profile title passed as argunet to console.profile()."}
{"name":"title","type":"string","optional":true,"description":"Profile title passed as an argument to console.profile()."}