Expand 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.
Structs§
- AddBinding
Params - If executionContextId is empty, adds binding with the given name on the global objects of all inspected contexts, including those created later, bindings survive reloads. Binding function takes exactly one argument, this argument should be string, in case of any other input, function throws an exception. Each binding function call produces Runtime.bindingCalled notification. addBinding
- AddBinding
Params Builder - AddBinding
Returns - If executionContextId is empty, adds binding with the given name on the global objects of all inspected contexts, including those created later, bindings survive reloads. Binding function takes exactly one argument, this argument should be string, in case of any other input, function throws an exception. Each binding function call produces Runtime.bindingCalled notification. addBinding
- Await
Promise Params - Add handler to promise with given promise object id. awaitPromise
- Await
Promise Params Builder - Await
Promise Returns - Add handler to promise with given promise object id. awaitPromise
- Await
Promise Returns Builder - Call
Argument - Represents function call argument. Either remote object id
objectId
, primitivevalue
, unserializable primitive value or neither of (for undefined) them should be specified. CallArgument - Call
Argument Builder - Call
Frame - Stack entry for runtime errors and assertions. CallFrame
- Call
Frame Builder - Call
Function OnParams - Calls function with given declaration on the given object. Object group of the result is inherited from the target object. callFunctionOn
- Call
Function OnParams Builder - Call
Function OnReturns - Calls function with given declaration on the given object. Object group of the result is inherited from the target object. callFunctionOn
- Call
Function OnReturns Builder - Compile
Script Params - Compiles expression. compileScript
- Compile
Script Params Builder - Compile
Script Returns - Compiles expression. compileScript
- Compile
Script Returns Builder - Custom
Preview - Custom
Preview Builder - Deep
Serialized Value - Represents deep serialized value. DeepSerializedValue
- Deep
Serialized Value Builder - Disable
Params - Disables reporting of execution contexts creation. disable
- Disable
Returns - Disables reporting of execution contexts creation. disable
- Discard
Console Entries Params - Discards collected exceptions and console API calls. discardConsoleEntries
- Discard
Console Entries Returns - Discards collected exceptions and console API calls. discardConsoleEntries
- Enable
Params - Enables reporting of execution contexts creation by means of
executionContextCreated
event. When the reporting gets enabled the event will be sent immediately for each existing execution context. enable - Enable
Returns - Enables reporting of execution contexts creation by means of
executionContextCreated
event. When the reporting gets enabled the event will be sent immediately for each existing execution context. enable - Entry
Preview - Entry
Preview Builder - Evaluate
Params - Evaluates expression on global object. evaluate
- Evaluate
Params Builder - Evaluate
Returns - Evaluates expression on global object. evaluate
- Evaluate
Returns Builder - Event
Binding Called - Notification is issued every time when binding is called. bindingCalled
- Event
Console ApiCalled - Issued when console API was called. consoleAPICalled
- Event
Exception Revoked - Issued when unhandled exception was revoked. exceptionRevoked
- Event
Exception Thrown - Issued when exception was thrown and unhandled. exceptionThrown
- Event
Execution Context Created - Issued when new execution context is created. executionContextCreated
- Event
Execution Context Destroyed - Issued when execution context is destroyed. executionContextDestroyed
- Event
Execution Contexts Cleared - Issued when all executionContexts were cleared in browser executionContextsCleared
- Event
Inspect Requested - Issued when object should be inspected (for example, as a result of inspect() command line API call). inspectRequested
- Exception
Details - Detailed information about exception (or error) that was thrown during script compilation or execution. ExceptionDetails
- Exception
Details Builder - Execution
Context Description - Description of an isolated world. ExecutionContextDescription
- Execution
Context Description Builder - Execution
Context Id - Id of an execution context. ExecutionContextId
- GetException
Details Params - This method tries to lookup and populate exception details for a JavaScript Error object. Note that the stackTrace portion of the resulting exceptionDetails will only be populated if the Runtime domain was enabled at the time when the Error was thrown. getExceptionDetails
- GetException
Details Params Builder - GetException
Details Returns - This method tries to lookup and populate exception details for a JavaScript Error object. Note that the stackTrace portion of the resulting exceptionDetails will only be populated if the Runtime domain was enabled at the time when the Error was thrown. getExceptionDetails
- GetException
Details Returns Builder - GetHeap
Usage Params - Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime. getHeapUsage
- GetHeap
Usage Returns - Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime. getHeapUsage
- GetHeap
Usage Returns Builder - GetIsolate
IdParams - Returns the isolate id. getIsolateId
- GetIsolate
IdReturns - Returns the isolate id. getIsolateId
- GetIsolate
IdReturns Builder - GetProperties
Params - Returns properties of a given object. Object group of the result is inherited from the target object. getProperties
- GetProperties
Params Builder - GetProperties
Returns - Returns properties of a given object. Object group of the result is inherited from the target object. getProperties
- GetProperties
Returns Builder - Global
Lexical Scope Names Params - Returns all let, const and class variables from global scope. globalLexicalScopeNames
- Global
Lexical Scope Names Params Builder - Global
Lexical Scope Names Returns - Returns all let, const and class variables from global scope. globalLexicalScopeNames
- Global
Lexical Scope Names Returns Builder - Internal
Property Descriptor - Object internal property descriptor. This property isn’t normally visible in JavaScript code. InternalPropertyDescriptor
- Internal
Property Descriptor Builder - Object
Preview - Object containing abbreviated remote object value. ObjectPreview
- Object
Preview Builder - Private
Property Descriptor - Object private field descriptor. PrivatePropertyDescriptor
- Private
Property Descriptor Builder - Property
Descriptor - Object property descriptor. PropertyDescriptor
- Property
Descriptor Builder - Property
Preview - Property
Preview Builder - Query
Objects Params - Query
Objects Params Builder - Query
Objects Returns - Query
Objects Returns Builder - Release
Object Group Params - Releases all remote objects that belong to a given group. releaseObjectGroup
- Release
Object Group Params Builder - Release
Object Group Returns - Releases all remote objects that belong to a given group. releaseObjectGroup
- Release
Object Params - Releases remote object with given id. releaseObject
- Release
Object Params Builder - Release
Object Returns - Releases remote object with given id. releaseObject
- Remote
Object - Mirror object referencing original JavaScript object. RemoteObject
- Remote
Object Builder - Remote
Object Id - Unique object identifier. RemoteObjectId
- Remove
Binding Params - This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications. removeBinding
- Remove
Binding Params Builder - Remove
Binding Returns - This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications. removeBinding
- RunIf
Waiting ForDebugger Params - Tells inspected instance to run if it was waiting for debugger to attach. runIfWaitingForDebugger
- RunIf
Waiting ForDebugger Returns - Tells inspected instance to run if it was waiting for debugger to attach. runIfWaitingForDebugger
- RunScript
Params - Runs script with given id in a given context. runScript
- RunScript
Params Builder - RunScript
Returns - Runs script with given id in a given context. runScript
- RunScript
Returns Builder - Script
Id - Unique script identifier. ScriptId
- Serialization
Options - Represents options for serialization. Overrides
generatePreview
andreturnByValue
. SerializationOptions - Serialization
Options Builder - SetAsync
Call Stack Depth Params - Enables or disables async call stacks tracking. setAsyncCallStackDepth
- SetAsync
Call Stack Depth Params Builder - SetAsync
Call Stack Depth Returns - Enables or disables async call stacks tracking. setAsyncCallStackDepth
- SetCustom
Object Formatter Enabled Params - SetCustom
Object Formatter Enabled Params Builder - SetCustom
Object Formatter Enabled Returns - SetMax
Call Stack Size ToCapture Params - SetMax
Call Stack Size ToCapture Params Builder - SetMax
Call Stack Size ToCapture Returns - Stack
Trace - Call frames for assertions or error messages. StackTrace
- Stack
Trace Builder - Stack
Trace Id - If
debuggerId
is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. SeeRuntime.StackTrace
andDebugger.paused
for usages. StackTraceId - Stack
Trace IdBuilder - Terminate
Execution Params - Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends. terminateExecution
- Terminate
Execution Returns - Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends. terminateExecution
- Time
Delta - Number of milliseconds. TimeDelta
- Timestamp
- Number of milliseconds since epoch. Timestamp
- Unique
Debugger Id - Unique identifier of current debugger. UniqueDebuggerId
- Unserializable
Value - Primitive value which cannot be JSON-stringified. Includes values
-0
,NaN
,Infinity
,-Infinity
, and bigint literals. UnserializableValue
Enums§
- Console
ApiCalled Type - Type of the call.
- Deep
Serialized Value Type - Object
Preview Subtype - Object subtype hint. Specified for
object
type values only. - Object
Preview Type - Object type.
- Property
Preview Subtype - Object subtype hint. Specified for
object
type values only. - Property
Preview Type - Object type. Accessor means that the property itself is an accessor property.
- Remote
Object Subtype - Object subtype hint. Specified for
object
type values only. NOTE: If you change anything here, make sure to also updatesubtype
inObjectPreview
andPropertyPreview
below. - Remote
Object Type - Object type.
- Serialization
Options Serialization