Click or drag to resize

RuntimeClient Methods

Version 111.2.70

The RuntimeClient type exposes the following members.

Methods
  NameDescription
Public methodAddBindingAsync
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.
Public methodAwaitPromiseAsync
Add handler to promise with given promise object id.
Public methodCallFunctionOnAsync
Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
Public methodCompileScriptAsync
Compiles expression.
Public methodDisableAsync
Disables reporting of execution contexts creation.
Public methodDiscardConsoleEntriesAsync
Discards collected exceptions and console API calls.
Public methodEnableAsync
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.
Protected methodEnumToString(ContentEncoding) (Inherited from DevToolsDomainBase.)
Protected methodEnumToString(CSPViolationType) (Inherited from DevToolsDomainBase.)
Protected methodEnumToString(DisabledImageType) (Inherited from DevToolsDomainBase.)
Protected methodEnumToString(Enum) (Inherited from DevToolsDomainBase.)
Protected methodEnumToString(PermissionType) (Inherited from DevToolsDomainBase.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEvaluateAsync
Evaluates expression on global object.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetExceptionDetailsAsync
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.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetHeapUsageAsync
Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime.
Public methodGetIsolateIdAsync
Returns the isolate id.
Public methodGetPropertiesAsync
Returns properties of a given object. Object group of the result is inherited from the target object.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGlobalLexicalScopeNamesAsync
Returns all let, const and class variables from global scope.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodQueryObjectsAsync
QueryObjects
Public methodReleaseObjectAsync
Releases remote object with given id.
Public methodReleaseObjectGroupAsync
Releases all remote objects that belong to a given group.
Public methodRemoveBindingAsync
This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications.
Public methodRunIfWaitingForDebuggerAsync
Tells inspected instance to run if it was waiting for debugger to attach.
Public methodRunScriptAsync
Runs script with given id in a given context.
Public methodSetAsyncCallStackDepthAsync
Enables or disables async call stacks tracking.
Public methodSetCustomObjectFormatterEnabledAsync
SetCustomObjectFormatterEnabled
Public methodSetMaxCallStackSizeToCaptureAsync
SetMaxCallStackSizeToCapture
Public methodTerminateExecutionAsync
Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends.
Protected methodToBase64String (Inherited from DevToolsDomainBase.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also