Skip to main content

Module commands

Module commands 

Source

Structs§

AddBinding
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
AddBindingParams
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
AwaitPromise
Add handler to promise with given promise object id. awaitPromise
AwaitPromiseParams
Add handler to promise with given promise object id. awaitPromise
CallFunctionOn
Calls function with given declaration on the given object. Object group of the result is inherited from the target object. callFunctionOn
CallFunctionOnParams
Calls function with given declaration on the given object. Object group of the result is inherited from the target object. callFunctionOn
CompileScript
Compiles expression. compileScript
CompileScriptParams
Compiles expression. compileScript
Disable
Disables reporting of execution contexts creation. disable
DisableParams
Disables reporting of execution contexts creation. disable
DiscardConsoleEntries
Discards collected exceptions and console API calls. discardConsoleEntries
DiscardConsoleEntriesParams
Discards collected exceptions and console API calls. discardConsoleEntries
Enable
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
EnableParams
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
Evaluate
Evaluates expression on global object. evaluate
EvaluateParams
Evaluates expression on global object. evaluate
GetExceptionDetails
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
GetExceptionDetailsParams
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
GetHeapUsage
Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime. getHeapUsage
GetHeapUsageParams
Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime. getHeapUsage
GetIsolateId
Returns the isolate id. getIsolateId
GetIsolateIdParams
Returns the isolate id. getIsolateId
GetProperties
Returns properties of a given object. Object group of the result is inherited from the target object. getProperties
GetPropertiesParams
Returns properties of a given object. Object group of the result is inherited from the target object. getProperties
GlobalLexicalScopeNames
Returns all let, const and class variables from global scope. globalLexicalScopeNames
GlobalLexicalScopeNamesParams
Returns all let, const and class variables from global scope. globalLexicalScopeNames
QueryObjects
QueryObjectsParams
ReleaseObject
Releases remote object with given id. releaseObject
ReleaseObjectGroup
Releases all remote objects that belong to a given group. releaseObjectGroup
ReleaseObjectGroupParams
Releases all remote objects that belong to a given group. releaseObjectGroup
ReleaseObjectParams
Releases remote object with given id. releaseObject
RemoveBinding
This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications. removeBinding
RemoveBindingParams
This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications. removeBinding
RunIfWaitingForDebugger
Tells inspected instance to run if it was waiting for debugger to attach. runIfWaitingForDebugger
RunIfWaitingForDebuggerParams
Tells inspected instance to run if it was waiting for debugger to attach. runIfWaitingForDebugger
RunScript
Runs script with given id in a given context. runScript
RunScriptParams
Runs script with given id in a given context. runScript
SetAsyncCallStackDepth
Enables or disables async call stacks tracking. setAsyncCallStackDepth
SetAsyncCallStackDepthParams
Enables or disables async call stacks tracking. setAsyncCallStackDepth
SetCustomObjectFormatterEnabled
SetCustomObjectFormatterEnabledParams
SetMaxCallStackSizeToCapture
SetMaxCallStackSizeToCaptureParams
TerminateExecution
Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends. terminateExecution
TerminateExecutionParams
Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends. terminateExecution

Enums§

AddBindingMethod
AwaitPromiseMethod
CallFunctionOnMethod
CompileScriptMethod
DisableMethod
DiscardConsoleEntriesMethod
EnableMethod
EvaluateMethod
GetExceptionDetailsMethod
GetHeapUsageMethod
GetIsolateIdMethod
GetPropertiesMethod
GlobalLexicalScopeNamesMethod
QueryObjectsMethod
ReleaseObjectGroupMethod
ReleaseObjectMethod
RemoveBindingMethod
RunIfWaitingForDebuggerMethod
RunScriptMethod
RuntimeCommands
SetAsyncCallStackDepthMethod
SetCustomObjectFormatterEnabledMethod
SetMaxCallStackSizeToCaptureMethod
TerminateExecutionMethod