11cb0ef41Sopenharmony_ci# Copyright 2017 The Chromium Authors. All rights reserved.
21cb0ef41Sopenharmony_ci# Use of this source code is governed by a BSD-style license that can be
31cb0ef41Sopenharmony_ci# found in the LICENSE file.
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_civersion
61cb0ef41Sopenharmony_ci  major 1
71cb0ef41Sopenharmony_ci  minor 3
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_ci# This domain is deprecated - use Runtime or Log instead.
101cb0ef41Sopenharmony_cideprecated domain Console
111cb0ef41Sopenharmony_ci  depends on Runtime
121cb0ef41Sopenharmony_ci
131cb0ef41Sopenharmony_ci  # Console message.
141cb0ef41Sopenharmony_ci  type ConsoleMessage extends object
151cb0ef41Sopenharmony_ci    properties
161cb0ef41Sopenharmony_ci      # Message source.
171cb0ef41Sopenharmony_ci      enum source
181cb0ef41Sopenharmony_ci        xml
191cb0ef41Sopenharmony_ci        javascript
201cb0ef41Sopenharmony_ci        network
211cb0ef41Sopenharmony_ci        console-api
221cb0ef41Sopenharmony_ci        storage
231cb0ef41Sopenharmony_ci        appcache
241cb0ef41Sopenharmony_ci        rendering
251cb0ef41Sopenharmony_ci        security
261cb0ef41Sopenharmony_ci        other
271cb0ef41Sopenharmony_ci        deprecation
281cb0ef41Sopenharmony_ci        worker
291cb0ef41Sopenharmony_ci      # Message severity.
301cb0ef41Sopenharmony_ci      enum level
311cb0ef41Sopenharmony_ci        log
321cb0ef41Sopenharmony_ci        warning
331cb0ef41Sopenharmony_ci        error
341cb0ef41Sopenharmony_ci        debug
351cb0ef41Sopenharmony_ci        info
361cb0ef41Sopenharmony_ci      # Message text.
371cb0ef41Sopenharmony_ci      string text
381cb0ef41Sopenharmony_ci      # URL of the message origin.
391cb0ef41Sopenharmony_ci      optional string url
401cb0ef41Sopenharmony_ci      # Line number in the resource that generated this message (1-based).
411cb0ef41Sopenharmony_ci      optional integer line
421cb0ef41Sopenharmony_ci      # Column number in the resource that generated this message (1-based).
431cb0ef41Sopenharmony_ci      optional integer column
441cb0ef41Sopenharmony_ci
451cb0ef41Sopenharmony_ci  # Does nothing.
461cb0ef41Sopenharmony_ci  command clearMessages
471cb0ef41Sopenharmony_ci
481cb0ef41Sopenharmony_ci  # Disables console domain, prevents further console messages from being reported to the client.
491cb0ef41Sopenharmony_ci  command disable
501cb0ef41Sopenharmony_ci
511cb0ef41Sopenharmony_ci  # Enables console domain, sends the messages collected so far to the client by means of the
521cb0ef41Sopenharmony_ci  # `messageAdded` notification.
531cb0ef41Sopenharmony_ci  command enable
541cb0ef41Sopenharmony_ci
551cb0ef41Sopenharmony_ci  # Issued when new console message is added.
561cb0ef41Sopenharmony_ci  event messageAdded
571cb0ef41Sopenharmony_ci    parameters
581cb0ef41Sopenharmony_ci      # Console message that has been added.
591cb0ef41Sopenharmony_ci      ConsoleMessage message
601cb0ef41Sopenharmony_ci
611cb0ef41Sopenharmony_ci# Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing
621cb0ef41Sopenharmony_ci# breakpoints, stepping through execution, exploring stack traces, etc.
631cb0ef41Sopenharmony_cidomain Debugger
641cb0ef41Sopenharmony_ci  depends on Runtime
651cb0ef41Sopenharmony_ci
661cb0ef41Sopenharmony_ci  # Breakpoint identifier.
671cb0ef41Sopenharmony_ci  type BreakpointId extends string
681cb0ef41Sopenharmony_ci
691cb0ef41Sopenharmony_ci  # Call frame identifier.
701cb0ef41Sopenharmony_ci  type CallFrameId extends string
711cb0ef41Sopenharmony_ci
721cb0ef41Sopenharmony_ci  # Location in the source code.
731cb0ef41Sopenharmony_ci  type Location extends object
741cb0ef41Sopenharmony_ci    properties
751cb0ef41Sopenharmony_ci      # Script identifier as reported in the `Debugger.scriptParsed`.
761cb0ef41Sopenharmony_ci      Runtime.ScriptId scriptId
771cb0ef41Sopenharmony_ci      # Line number in the script (0-based).
781cb0ef41Sopenharmony_ci      integer lineNumber
791cb0ef41Sopenharmony_ci      # Column number in the script (0-based).
801cb0ef41Sopenharmony_ci      optional integer columnNumber
811cb0ef41Sopenharmony_ci
821cb0ef41Sopenharmony_ci  # Location in the source code.
831cb0ef41Sopenharmony_ci  experimental type ScriptPosition extends object
841cb0ef41Sopenharmony_ci    properties
851cb0ef41Sopenharmony_ci      integer lineNumber
861cb0ef41Sopenharmony_ci      integer columnNumber
871cb0ef41Sopenharmony_ci
881cb0ef41Sopenharmony_ci  # Location range within one script.
891cb0ef41Sopenharmony_ci  experimental type LocationRange extends object
901cb0ef41Sopenharmony_ci    properties
911cb0ef41Sopenharmony_ci      Runtime.ScriptId scriptId
921cb0ef41Sopenharmony_ci      ScriptPosition start
931cb0ef41Sopenharmony_ci      ScriptPosition end
941cb0ef41Sopenharmony_ci
951cb0ef41Sopenharmony_ci  # JavaScript call frame. Array of call frames form the call stack.
961cb0ef41Sopenharmony_ci  type CallFrame extends object
971cb0ef41Sopenharmony_ci    properties
981cb0ef41Sopenharmony_ci      # Call frame identifier. This identifier is only valid while the virtual machine is paused.
991cb0ef41Sopenharmony_ci      CallFrameId callFrameId
1001cb0ef41Sopenharmony_ci      # Name of the JavaScript function called on this call frame.
1011cb0ef41Sopenharmony_ci      string functionName
1021cb0ef41Sopenharmony_ci      # Location in the source code.
1031cb0ef41Sopenharmony_ci      optional Location functionLocation
1041cb0ef41Sopenharmony_ci      # Location in the source code.
1051cb0ef41Sopenharmony_ci      Location location
1061cb0ef41Sopenharmony_ci      # JavaScript script name or url.
1071cb0ef41Sopenharmony_ci      # Deprecated in favor of using the `location.scriptId` to resolve the URL via a previously
1081cb0ef41Sopenharmony_ci      # sent `Debugger.scriptParsed` event.
1091cb0ef41Sopenharmony_ci      deprecated string url
1101cb0ef41Sopenharmony_ci      # Scope chain for this call frame.
1111cb0ef41Sopenharmony_ci      array of Scope scopeChain
1121cb0ef41Sopenharmony_ci      # `this` object for this call frame.
1131cb0ef41Sopenharmony_ci      Runtime.RemoteObject this
1141cb0ef41Sopenharmony_ci      # The value being returned, if the function is at return point.
1151cb0ef41Sopenharmony_ci      optional Runtime.RemoteObject returnValue
1161cb0ef41Sopenharmony_ci      # Valid only while the VM is paused and indicates whether this frame
1171cb0ef41Sopenharmony_ci      # can be restarted or not. Note that a `true` value here does not
1181cb0ef41Sopenharmony_ci      # guarantee that Debugger#restartFrame with this CallFrameId will be
1191cb0ef41Sopenharmony_ci      # successful, but it is very likely.
1201cb0ef41Sopenharmony_ci      experimental optional boolean canBeRestarted
1211cb0ef41Sopenharmony_ci
1221cb0ef41Sopenharmony_ci  # Scope description.
1231cb0ef41Sopenharmony_ci  type Scope extends object
1241cb0ef41Sopenharmony_ci    properties
1251cb0ef41Sopenharmony_ci      # Scope type.
1261cb0ef41Sopenharmony_ci      enum type
1271cb0ef41Sopenharmony_ci        global
1281cb0ef41Sopenharmony_ci        local
1291cb0ef41Sopenharmony_ci        with
1301cb0ef41Sopenharmony_ci        closure
1311cb0ef41Sopenharmony_ci        catch
1321cb0ef41Sopenharmony_ci        block
1331cb0ef41Sopenharmony_ci        script
1341cb0ef41Sopenharmony_ci        eval
1351cb0ef41Sopenharmony_ci        module
1361cb0ef41Sopenharmony_ci        wasm-expression-stack
1371cb0ef41Sopenharmony_ci      # Object representing the scope. For `global` and `with` scopes it represents the actual
1381cb0ef41Sopenharmony_ci      # object; for the rest of the scopes, it is artificial transient object enumerating scope
1391cb0ef41Sopenharmony_ci      # variables as its properties.
1401cb0ef41Sopenharmony_ci      Runtime.RemoteObject object
1411cb0ef41Sopenharmony_ci      optional string name
1421cb0ef41Sopenharmony_ci      # Location in the source code where scope starts
1431cb0ef41Sopenharmony_ci      optional Location startLocation
1441cb0ef41Sopenharmony_ci      # Location in the source code where scope ends
1451cb0ef41Sopenharmony_ci      optional Location endLocation
1461cb0ef41Sopenharmony_ci
1471cb0ef41Sopenharmony_ci  # Search match for resource.
1481cb0ef41Sopenharmony_ci  type SearchMatch extends object
1491cb0ef41Sopenharmony_ci    properties
1501cb0ef41Sopenharmony_ci      # Line number in resource content.
1511cb0ef41Sopenharmony_ci      number lineNumber
1521cb0ef41Sopenharmony_ci      # Line with match content.
1531cb0ef41Sopenharmony_ci      string lineContent
1541cb0ef41Sopenharmony_ci
1551cb0ef41Sopenharmony_ci  type BreakLocation extends object
1561cb0ef41Sopenharmony_ci    properties
1571cb0ef41Sopenharmony_ci      # Script identifier as reported in the `Debugger.scriptParsed`.
1581cb0ef41Sopenharmony_ci      Runtime.ScriptId scriptId
1591cb0ef41Sopenharmony_ci      # Line number in the script (0-based).
1601cb0ef41Sopenharmony_ci      integer lineNumber
1611cb0ef41Sopenharmony_ci      # Column number in the script (0-based).
1621cb0ef41Sopenharmony_ci      optional integer columnNumber
1631cb0ef41Sopenharmony_ci      optional enum type
1641cb0ef41Sopenharmony_ci        debuggerStatement
1651cb0ef41Sopenharmony_ci        call
1661cb0ef41Sopenharmony_ci        return
1671cb0ef41Sopenharmony_ci
1681cb0ef41Sopenharmony_ci  # Continues execution until specific location is reached.
1691cb0ef41Sopenharmony_ci  command continueToLocation
1701cb0ef41Sopenharmony_ci    parameters
1711cb0ef41Sopenharmony_ci      # Location to continue to.
1721cb0ef41Sopenharmony_ci      Location location
1731cb0ef41Sopenharmony_ci      optional enum targetCallFrames
1741cb0ef41Sopenharmony_ci        any
1751cb0ef41Sopenharmony_ci        current
1761cb0ef41Sopenharmony_ci
1771cb0ef41Sopenharmony_ci  # Disables debugger for given page.
1781cb0ef41Sopenharmony_ci  command disable
1791cb0ef41Sopenharmony_ci
1801cb0ef41Sopenharmony_ci  # Enables debugger for the given page. Clients should not assume that the debugging has been
1811cb0ef41Sopenharmony_ci  # enabled until the result for this command is received.
1821cb0ef41Sopenharmony_ci  command enable
1831cb0ef41Sopenharmony_ci    parameters
1841cb0ef41Sopenharmony_ci      # The maximum size in bytes of collected scripts (not referenced by other heap objects)
1851cb0ef41Sopenharmony_ci      # the debugger can hold. Puts no limit if parameter is omitted.
1861cb0ef41Sopenharmony_ci      experimental optional number maxScriptsCacheSize
1871cb0ef41Sopenharmony_ci    returns
1881cb0ef41Sopenharmony_ci      # Unique identifier of the debugger.
1891cb0ef41Sopenharmony_ci      experimental Runtime.UniqueDebuggerId debuggerId
1901cb0ef41Sopenharmony_ci
1911cb0ef41Sopenharmony_ci  # Evaluates expression on a given call frame.
1921cb0ef41Sopenharmony_ci  command evaluateOnCallFrame
1931cb0ef41Sopenharmony_ci    parameters
1941cb0ef41Sopenharmony_ci      # Call frame identifier to evaluate on.
1951cb0ef41Sopenharmony_ci      CallFrameId callFrameId
1961cb0ef41Sopenharmony_ci      # Expression to evaluate.
1971cb0ef41Sopenharmony_ci      string expression
1981cb0ef41Sopenharmony_ci      # String object group name to put result into (allows rapid releasing resulting object handles
1991cb0ef41Sopenharmony_ci      # using `releaseObjectGroup`).
2001cb0ef41Sopenharmony_ci      optional string objectGroup
2011cb0ef41Sopenharmony_ci      # Specifies whether command line API should be available to the evaluated expression, defaults
2021cb0ef41Sopenharmony_ci      # to false.
2031cb0ef41Sopenharmony_ci      optional boolean includeCommandLineAPI
2041cb0ef41Sopenharmony_ci      # In silent mode exceptions thrown during evaluation are not reported and do not pause
2051cb0ef41Sopenharmony_ci      # execution. Overrides `setPauseOnException` state.
2061cb0ef41Sopenharmony_ci      optional boolean silent
2071cb0ef41Sopenharmony_ci      # Whether the result is expected to be a JSON object that should be sent by value.
2081cb0ef41Sopenharmony_ci      optional boolean returnByValue
2091cb0ef41Sopenharmony_ci      # Whether preview should be generated for the result.
2101cb0ef41Sopenharmony_ci      experimental optional boolean generatePreview
2111cb0ef41Sopenharmony_ci      # Whether to throw an exception if side effect cannot be ruled out during evaluation.
2121cb0ef41Sopenharmony_ci      optional boolean throwOnSideEffect
2131cb0ef41Sopenharmony_ci      # Terminate execution after timing out (number of milliseconds).
2141cb0ef41Sopenharmony_ci      experimental optional Runtime.TimeDelta timeout
2151cb0ef41Sopenharmony_ci    returns
2161cb0ef41Sopenharmony_ci      # Object wrapper for the evaluation result.
2171cb0ef41Sopenharmony_ci      Runtime.RemoteObject result
2181cb0ef41Sopenharmony_ci      # Exception details.
2191cb0ef41Sopenharmony_ci      optional Runtime.ExceptionDetails exceptionDetails
2201cb0ef41Sopenharmony_ci
2211cb0ef41Sopenharmony_ci  # Returns possible locations for breakpoint. scriptId in start and end range locations should be
2221cb0ef41Sopenharmony_ci  # the same.
2231cb0ef41Sopenharmony_ci  command getPossibleBreakpoints
2241cb0ef41Sopenharmony_ci    parameters
2251cb0ef41Sopenharmony_ci      # Start of range to search possible breakpoint locations in.
2261cb0ef41Sopenharmony_ci      Location start
2271cb0ef41Sopenharmony_ci      # End of range to search possible breakpoint locations in (excluding). When not specified, end
2281cb0ef41Sopenharmony_ci      # of scripts is used as end of range.
2291cb0ef41Sopenharmony_ci      optional Location end
2301cb0ef41Sopenharmony_ci      # Only consider locations which are in the same (non-nested) function as start.
2311cb0ef41Sopenharmony_ci      optional boolean restrictToFunction
2321cb0ef41Sopenharmony_ci    returns
2331cb0ef41Sopenharmony_ci      # List of the possible breakpoint locations.
2341cb0ef41Sopenharmony_ci      array of BreakLocation locations
2351cb0ef41Sopenharmony_ci
2361cb0ef41Sopenharmony_ci  # Returns source for the script with given id.
2371cb0ef41Sopenharmony_ci  command getScriptSource
2381cb0ef41Sopenharmony_ci    parameters
2391cb0ef41Sopenharmony_ci      # Id of the script to get source for.
2401cb0ef41Sopenharmony_ci      Runtime.ScriptId scriptId
2411cb0ef41Sopenharmony_ci    returns
2421cb0ef41Sopenharmony_ci      # Script source (empty in case of Wasm bytecode).
2431cb0ef41Sopenharmony_ci      string scriptSource
2441cb0ef41Sopenharmony_ci      # Wasm bytecode.
2451cb0ef41Sopenharmony_ci      optional binary bytecode
2461cb0ef41Sopenharmony_ci
2471cb0ef41Sopenharmony_ci  experimental type WasmDisassemblyChunk extends object
2481cb0ef41Sopenharmony_ci    properties
2491cb0ef41Sopenharmony_ci      # The next chunk of disassembled lines.
2501cb0ef41Sopenharmony_ci      array of string lines
2511cb0ef41Sopenharmony_ci      # The bytecode offsets describing the start of each line.
2521cb0ef41Sopenharmony_ci      array of integer bytecodeOffsets
2531cb0ef41Sopenharmony_ci
2541cb0ef41Sopenharmony_ci  experimental command disassembleWasmModule
2551cb0ef41Sopenharmony_ci    parameters
2561cb0ef41Sopenharmony_ci      # Id of the script to disassemble
2571cb0ef41Sopenharmony_ci      Runtime.ScriptId scriptId
2581cb0ef41Sopenharmony_ci    returns
2591cb0ef41Sopenharmony_ci      # For large modules, return a stream from which additional chunks of
2601cb0ef41Sopenharmony_ci      # disassembly can be read successively.
2611cb0ef41Sopenharmony_ci      optional string streamId
2621cb0ef41Sopenharmony_ci      # The total number of lines in the disassembly text.
2631cb0ef41Sopenharmony_ci      integer totalNumberOfLines
2641cb0ef41Sopenharmony_ci      # The offsets of all function bodies, in the format [start1, end1,
2651cb0ef41Sopenharmony_ci      # start2, end2, ...] where all ends are exclusive.
2661cb0ef41Sopenharmony_ci      array of integer functionBodyOffsets
2671cb0ef41Sopenharmony_ci      # The first chunk of disassembly.
2681cb0ef41Sopenharmony_ci      WasmDisassemblyChunk chunk
2691cb0ef41Sopenharmony_ci
2701cb0ef41Sopenharmony_ci  # Disassemble the next chunk of lines for the module corresponding to the
2711cb0ef41Sopenharmony_ci  # stream. If disassembly is complete, this API will invalidate the streamId
2721cb0ef41Sopenharmony_ci  # and return an empty chunk. Any subsequent calls for the now invalid stream
2731cb0ef41Sopenharmony_ci  # will return errors.
2741cb0ef41Sopenharmony_ci  experimental command nextWasmDisassemblyChunk
2751cb0ef41Sopenharmony_ci    parameters
2761cb0ef41Sopenharmony_ci      string streamId
2771cb0ef41Sopenharmony_ci    returns
2781cb0ef41Sopenharmony_ci      # The next chunk of disassembly.
2791cb0ef41Sopenharmony_ci      WasmDisassemblyChunk chunk
2801cb0ef41Sopenharmony_ci
2811cb0ef41Sopenharmony_ci  # This command is deprecated. Use getScriptSource instead.
2821cb0ef41Sopenharmony_ci  deprecated command getWasmBytecode
2831cb0ef41Sopenharmony_ci    parameters
2841cb0ef41Sopenharmony_ci      # Id of the Wasm script to get source for.
2851cb0ef41Sopenharmony_ci      Runtime.ScriptId scriptId
2861cb0ef41Sopenharmony_ci    returns
2871cb0ef41Sopenharmony_ci      # Script source.
2881cb0ef41Sopenharmony_ci      binary bytecode
2891cb0ef41Sopenharmony_ci
2901cb0ef41Sopenharmony_ci  # Returns stack trace with given `stackTraceId`.
2911cb0ef41Sopenharmony_ci  experimental command getStackTrace
2921cb0ef41Sopenharmony_ci    parameters
2931cb0ef41Sopenharmony_ci      Runtime.StackTraceId stackTraceId
2941cb0ef41Sopenharmony_ci    returns
2951cb0ef41Sopenharmony_ci      Runtime.StackTrace stackTrace
2961cb0ef41Sopenharmony_ci
2971cb0ef41Sopenharmony_ci  # Stops on the next JavaScript statement.
2981cb0ef41Sopenharmony_ci  command pause
2991cb0ef41Sopenharmony_ci
3001cb0ef41Sopenharmony_ci  experimental deprecated command pauseOnAsyncCall
3011cb0ef41Sopenharmony_ci    parameters
3021cb0ef41Sopenharmony_ci      # Debugger will pause when async call with given stack trace is started.
3031cb0ef41Sopenharmony_ci      Runtime.StackTraceId parentStackTraceId
3041cb0ef41Sopenharmony_ci
3051cb0ef41Sopenharmony_ci  # Removes JavaScript breakpoint.
3061cb0ef41Sopenharmony_ci  command removeBreakpoint
3071cb0ef41Sopenharmony_ci    parameters
3081cb0ef41Sopenharmony_ci      BreakpointId breakpointId
3091cb0ef41Sopenharmony_ci
3101cb0ef41Sopenharmony_ci  # Restarts particular call frame from the beginning. The old, deprecated
3111cb0ef41Sopenharmony_ci  # behavior of `restartFrame` is to stay paused and allow further CDP commands
3121cb0ef41Sopenharmony_ci  # after a restart was scheduled. This can cause problems with restarting, so
3131cb0ef41Sopenharmony_ci  # we now continue execution immediatly after it has been scheduled until we
3141cb0ef41Sopenharmony_ci  # reach the beginning of the restarted frame.
3151cb0ef41Sopenharmony_ci  #
3161cb0ef41Sopenharmony_ci  # To stay back-wards compatible, `restartFrame` now expects a `mode`
3171cb0ef41Sopenharmony_ci  # parameter to be present. If the `mode` parameter is missing, `restartFrame`
3181cb0ef41Sopenharmony_ci  # errors out.
3191cb0ef41Sopenharmony_ci  #
3201cb0ef41Sopenharmony_ci  # The various return values are deprecated and `callFrames` is always empty.
3211cb0ef41Sopenharmony_ci  # Use the call frames from the `Debugger#paused` events instead, that fires
3221cb0ef41Sopenharmony_ci  # once V8 pauses at the beginning of the restarted function.
3231cb0ef41Sopenharmony_ci  command restartFrame
3241cb0ef41Sopenharmony_ci    parameters
3251cb0ef41Sopenharmony_ci      # Call frame identifier to evaluate on.
3261cb0ef41Sopenharmony_ci      CallFrameId callFrameId
3271cb0ef41Sopenharmony_ci      # The `mode` parameter must be present and set to 'StepInto', otherwise
3281cb0ef41Sopenharmony_ci      # `restartFrame` will error out.
3291cb0ef41Sopenharmony_ci      experimental optional enum mode
3301cb0ef41Sopenharmony_ci        # Pause at the beginning of the restarted function
3311cb0ef41Sopenharmony_ci        StepInto
3321cb0ef41Sopenharmony_ci    returns
3331cb0ef41Sopenharmony_ci      # New stack trace.
3341cb0ef41Sopenharmony_ci      deprecated array of CallFrame callFrames
3351cb0ef41Sopenharmony_ci      # Async stack trace, if any.
3361cb0ef41Sopenharmony_ci      deprecated optional Runtime.StackTrace asyncStackTrace
3371cb0ef41Sopenharmony_ci      # Async stack trace, if any.
3381cb0ef41Sopenharmony_ci      deprecated optional Runtime.StackTraceId asyncStackTraceId
3391cb0ef41Sopenharmony_ci
3401cb0ef41Sopenharmony_ci  # Resumes JavaScript execution.
3411cb0ef41Sopenharmony_ci  command resume
3421cb0ef41Sopenharmony_ci    parameters
3431cb0ef41Sopenharmony_ci      # Set to true to terminate execution upon resuming execution. In contrast
3441cb0ef41Sopenharmony_ci      # to Runtime.terminateExecution, this will allows to execute further
3451cb0ef41Sopenharmony_ci      # JavaScript (i.e. via evaluation) until execution of the paused code
3461cb0ef41Sopenharmony_ci      # is actually resumed, at which point termination is triggered.
3471cb0ef41Sopenharmony_ci      # If execution is currently not paused, this parameter has no effect.
3481cb0ef41Sopenharmony_ci      optional boolean terminateOnResume
3491cb0ef41Sopenharmony_ci
3501cb0ef41Sopenharmony_ci  # Searches for given string in script content.
3511cb0ef41Sopenharmony_ci  command searchInContent
3521cb0ef41Sopenharmony_ci    parameters
3531cb0ef41Sopenharmony_ci      # Id of the script to search in.
3541cb0ef41Sopenharmony_ci      Runtime.ScriptId scriptId
3551cb0ef41Sopenharmony_ci      # String to search for.
3561cb0ef41Sopenharmony_ci      string query
3571cb0ef41Sopenharmony_ci      # If true, search is case sensitive.
3581cb0ef41Sopenharmony_ci      optional boolean caseSensitive
3591cb0ef41Sopenharmony_ci      # If true, treats string parameter as regex.
3601cb0ef41Sopenharmony_ci      optional boolean isRegex
3611cb0ef41Sopenharmony_ci    returns
3621cb0ef41Sopenharmony_ci      # List of search matches.
3631cb0ef41Sopenharmony_ci      array of SearchMatch result
3641cb0ef41Sopenharmony_ci
3651cb0ef41Sopenharmony_ci  # Enables or disables async call stacks tracking.
3661cb0ef41Sopenharmony_ci  command setAsyncCallStackDepth
3671cb0ef41Sopenharmony_ci    parameters
3681cb0ef41Sopenharmony_ci      # Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async
3691cb0ef41Sopenharmony_ci      # call stacks (default).
3701cb0ef41Sopenharmony_ci      integer maxDepth
3711cb0ef41Sopenharmony_ci
3721cb0ef41Sopenharmony_ci  # Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in
3731cb0ef41Sopenharmony_ci  # scripts with url matching one of the patterns. VM will try to leave blackboxed script by
3741cb0ef41Sopenharmony_ci  # performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
3751cb0ef41Sopenharmony_ci  experimental command setBlackboxPatterns
3761cb0ef41Sopenharmony_ci    parameters
3771cb0ef41Sopenharmony_ci      # Array of regexps that will be used to check script url for blackbox state.
3781cb0ef41Sopenharmony_ci      array of string patterns
3791cb0ef41Sopenharmony_ci
3801cb0ef41Sopenharmony_ci  # Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted
3811cb0ef41Sopenharmony_ci  # scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
3821cb0ef41Sopenharmony_ci  # Positions array contains positions where blackbox state is changed. First interval isn't
3831cb0ef41Sopenharmony_ci  # blackboxed. Array should be sorted.
3841cb0ef41Sopenharmony_ci  experimental command setBlackboxedRanges
3851cb0ef41Sopenharmony_ci    parameters
3861cb0ef41Sopenharmony_ci      # Id of the script.
3871cb0ef41Sopenharmony_ci      Runtime.ScriptId scriptId
3881cb0ef41Sopenharmony_ci      array of ScriptPosition positions
3891cb0ef41Sopenharmony_ci
3901cb0ef41Sopenharmony_ci  # Sets JavaScript breakpoint at a given location.
3911cb0ef41Sopenharmony_ci  command setBreakpoint
3921cb0ef41Sopenharmony_ci    parameters
3931cb0ef41Sopenharmony_ci      # Location to set breakpoint in.
3941cb0ef41Sopenharmony_ci      Location location
3951cb0ef41Sopenharmony_ci      # Expression to use as a breakpoint condition. When specified, debugger will only stop on the
3961cb0ef41Sopenharmony_ci      # breakpoint if this expression evaluates to true.
3971cb0ef41Sopenharmony_ci      optional string condition
3981cb0ef41Sopenharmony_ci    returns
3991cb0ef41Sopenharmony_ci      # Id of the created breakpoint for further reference.
4001cb0ef41Sopenharmony_ci      BreakpointId breakpointId
4011cb0ef41Sopenharmony_ci      # Location this breakpoint resolved into.
4021cb0ef41Sopenharmony_ci      Location actualLocation
4031cb0ef41Sopenharmony_ci
4041cb0ef41Sopenharmony_ci  # Sets instrumentation breakpoint.
4051cb0ef41Sopenharmony_ci  command setInstrumentationBreakpoint
4061cb0ef41Sopenharmony_ci    parameters
4071cb0ef41Sopenharmony_ci      # Instrumentation name.
4081cb0ef41Sopenharmony_ci      enum instrumentation
4091cb0ef41Sopenharmony_ci        beforeScriptExecution
4101cb0ef41Sopenharmony_ci        beforeScriptWithSourceMapExecution
4111cb0ef41Sopenharmony_ci    returns
4121cb0ef41Sopenharmony_ci      # Id of the created breakpoint for further reference.
4131cb0ef41Sopenharmony_ci      BreakpointId breakpointId
4141cb0ef41Sopenharmony_ci
4151cb0ef41Sopenharmony_ci  # Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this
4161cb0ef41Sopenharmony_ci  # command is issued, all existing parsed scripts will have breakpoints resolved and returned in
4171cb0ef41Sopenharmony_ci  # `locations` property. Further matching script parsing will result in subsequent
4181cb0ef41Sopenharmony_ci  # `breakpointResolved` events issued. This logical breakpoint will survive page reloads.
4191cb0ef41Sopenharmony_ci  command setBreakpointByUrl
4201cb0ef41Sopenharmony_ci    parameters
4211cb0ef41Sopenharmony_ci      # Line number to set breakpoint at.
4221cb0ef41Sopenharmony_ci      integer lineNumber
4231cb0ef41Sopenharmony_ci      # URL of the resources to set breakpoint on.
4241cb0ef41Sopenharmony_ci      optional string url
4251cb0ef41Sopenharmony_ci      # Regex pattern for the URLs of the resources to set breakpoints on. Either `url` or
4261cb0ef41Sopenharmony_ci      # `urlRegex` must be specified.
4271cb0ef41Sopenharmony_ci      optional string urlRegex
4281cb0ef41Sopenharmony_ci      # Script hash of the resources to set breakpoint on.
4291cb0ef41Sopenharmony_ci      optional string scriptHash
4301cb0ef41Sopenharmony_ci      # Offset in the line to set breakpoint at.
4311cb0ef41Sopenharmony_ci      optional integer columnNumber
4321cb0ef41Sopenharmony_ci      # Expression to use as a breakpoint condition. When specified, debugger will only stop on the
4331cb0ef41Sopenharmony_ci      # breakpoint if this expression evaluates to true.
4341cb0ef41Sopenharmony_ci      optional string condition
4351cb0ef41Sopenharmony_ci    returns
4361cb0ef41Sopenharmony_ci      # Id of the created breakpoint for further reference.
4371cb0ef41Sopenharmony_ci      BreakpointId breakpointId
4381cb0ef41Sopenharmony_ci      # List of the locations this breakpoint resolved into upon addition.
4391cb0ef41Sopenharmony_ci      array of Location locations
4401cb0ef41Sopenharmony_ci
4411cb0ef41Sopenharmony_ci  # Sets JavaScript breakpoint before each call to the given function.
4421cb0ef41Sopenharmony_ci  # If another function was created from the same source as a given one,
4431cb0ef41Sopenharmony_ci  # calling it will also trigger the breakpoint.
4441cb0ef41Sopenharmony_ci  experimental command setBreakpointOnFunctionCall
4451cb0ef41Sopenharmony_ci    parameters
4461cb0ef41Sopenharmony_ci      # Function object id.
4471cb0ef41Sopenharmony_ci      Runtime.RemoteObjectId objectId
4481cb0ef41Sopenharmony_ci      # Expression to use as a breakpoint condition. When specified, debugger will
4491cb0ef41Sopenharmony_ci      # stop on the breakpoint if this expression evaluates to true.
4501cb0ef41Sopenharmony_ci      optional string condition
4511cb0ef41Sopenharmony_ci    returns
4521cb0ef41Sopenharmony_ci      # Id of the created breakpoint for further reference.
4531cb0ef41Sopenharmony_ci      BreakpointId breakpointId
4541cb0ef41Sopenharmony_ci
4551cb0ef41Sopenharmony_ci  # Activates / deactivates all breakpoints on the page.
4561cb0ef41Sopenharmony_ci  command setBreakpointsActive
4571cb0ef41Sopenharmony_ci    parameters
4581cb0ef41Sopenharmony_ci      # New value for breakpoints active state.
4591cb0ef41Sopenharmony_ci      boolean active
4601cb0ef41Sopenharmony_ci
4611cb0ef41Sopenharmony_ci  # Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions,
4621cb0ef41Sopenharmony_ci  # or caught exceptions, no exceptions. Initial pause on exceptions state is `none`.
4631cb0ef41Sopenharmony_ci  command setPauseOnExceptions
4641cb0ef41Sopenharmony_ci    parameters
4651cb0ef41Sopenharmony_ci      # Pause on exceptions mode.
4661cb0ef41Sopenharmony_ci      enum state
4671cb0ef41Sopenharmony_ci        none
4681cb0ef41Sopenharmony_ci        caught
4691cb0ef41Sopenharmony_ci        uncaught
4701cb0ef41Sopenharmony_ci        all
4711cb0ef41Sopenharmony_ci
4721cb0ef41Sopenharmony_ci  # Changes return value in top frame. Available only at return break position.
4731cb0ef41Sopenharmony_ci  experimental command setReturnValue
4741cb0ef41Sopenharmony_ci    parameters
4751cb0ef41Sopenharmony_ci      # New return value.
4761cb0ef41Sopenharmony_ci      Runtime.CallArgument newValue
4771cb0ef41Sopenharmony_ci
4781cb0ef41Sopenharmony_ci  # Edits JavaScript source live.
4791cb0ef41Sopenharmony_ci  #
4801cb0ef41Sopenharmony_ci  # In general, functions that are currently on the stack can not be edited with
4811cb0ef41Sopenharmony_ci  # a single exception: If the edited function is the top-most stack frame and
4821cb0ef41Sopenharmony_ci  # that is the only activation of that function on the stack. In this case
4831cb0ef41Sopenharmony_ci  # the live edit will be successful and a `Debugger.restartFrame` for the
4841cb0ef41Sopenharmony_ci  # top-most function is automatically triggered.
4851cb0ef41Sopenharmony_ci  command setScriptSource
4861cb0ef41Sopenharmony_ci    parameters
4871cb0ef41Sopenharmony_ci      # Id of the script to edit.
4881cb0ef41Sopenharmony_ci      Runtime.ScriptId scriptId
4891cb0ef41Sopenharmony_ci      # New content of the script.
4901cb0ef41Sopenharmony_ci      string scriptSource
4911cb0ef41Sopenharmony_ci      #  If true the change will not actually be applied. Dry run may be used to get result
4921cb0ef41Sopenharmony_ci      # description without actually modifying the code.
4931cb0ef41Sopenharmony_ci      optional boolean dryRun
4941cb0ef41Sopenharmony_ci      # If true, then `scriptSource` is allowed to change the function on top of the stack
4951cb0ef41Sopenharmony_ci      # as long as the top-most stack frame is the only activation of that function.
4961cb0ef41Sopenharmony_ci      experimental optional boolean allowTopFrameEditing
4971cb0ef41Sopenharmony_ci    returns
4981cb0ef41Sopenharmony_ci      # New stack trace in case editing has happened while VM was stopped.
4991cb0ef41Sopenharmony_ci      deprecated optional array of CallFrame callFrames
5001cb0ef41Sopenharmony_ci      # Whether current call stack  was modified after applying the changes.
5011cb0ef41Sopenharmony_ci      deprecated optional boolean stackChanged
5021cb0ef41Sopenharmony_ci      # Async stack trace, if any.
5031cb0ef41Sopenharmony_ci      deprecated optional Runtime.StackTrace asyncStackTrace
5041cb0ef41Sopenharmony_ci      # Async stack trace, if any.
5051cb0ef41Sopenharmony_ci      deprecated optional Runtime.StackTraceId asyncStackTraceId
5061cb0ef41Sopenharmony_ci      # Whether the operation was successful or not. Only `Ok` denotes a
5071cb0ef41Sopenharmony_ci      # successful live edit while the other enum variants denote why
5081cb0ef41Sopenharmony_ci      # the live edit failed.
5091cb0ef41Sopenharmony_ci      experimental enum status
5101cb0ef41Sopenharmony_ci        Ok
5111cb0ef41Sopenharmony_ci        CompileError
5121cb0ef41Sopenharmony_ci        BlockedByActiveGenerator
5131cb0ef41Sopenharmony_ci        BlockedByActiveFunction
5141cb0ef41Sopenharmony_ci        BlockedByTopLevelEsModuleChange
5151cb0ef41Sopenharmony_ci      # Exception details if any. Only present when `status` is `CompileError`.
5161cb0ef41Sopenharmony_ci      optional Runtime.ExceptionDetails exceptionDetails
5171cb0ef41Sopenharmony_ci
5181cb0ef41Sopenharmony_ci  # Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
5191cb0ef41Sopenharmony_ci  command setSkipAllPauses
5201cb0ef41Sopenharmony_ci    parameters
5211cb0ef41Sopenharmony_ci      # New value for skip pauses state.
5221cb0ef41Sopenharmony_ci      boolean skip
5231cb0ef41Sopenharmony_ci
5241cb0ef41Sopenharmony_ci  # Changes value of variable in a callframe. Object-based scopes are not supported and must be
5251cb0ef41Sopenharmony_ci  # mutated manually.
5261cb0ef41Sopenharmony_ci  command setVariableValue
5271cb0ef41Sopenharmony_ci    parameters
5281cb0ef41Sopenharmony_ci      # 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch'
5291cb0ef41Sopenharmony_ci      # scope types are allowed. Other scopes could be manipulated manually.
5301cb0ef41Sopenharmony_ci      integer scopeNumber
5311cb0ef41Sopenharmony_ci      # Variable name.
5321cb0ef41Sopenharmony_ci      string variableName
5331cb0ef41Sopenharmony_ci      # New variable value.
5341cb0ef41Sopenharmony_ci      Runtime.CallArgument newValue
5351cb0ef41Sopenharmony_ci      # Id of callframe that holds variable.
5361cb0ef41Sopenharmony_ci      CallFrameId callFrameId
5371cb0ef41Sopenharmony_ci
5381cb0ef41Sopenharmony_ci  # Steps into the function call.
5391cb0ef41Sopenharmony_ci  command stepInto
5401cb0ef41Sopenharmony_ci    parameters
5411cb0ef41Sopenharmony_ci      # Debugger will pause on the execution of the first async task which was scheduled
5421cb0ef41Sopenharmony_ci      # before next pause.
5431cb0ef41Sopenharmony_ci      experimental optional boolean breakOnAsyncCall
5441cb0ef41Sopenharmony_ci      # The skipList specifies location ranges that should be skipped on step into.
5451cb0ef41Sopenharmony_ci      experimental optional array of LocationRange skipList
5461cb0ef41Sopenharmony_ci
5471cb0ef41Sopenharmony_ci  # Steps out of the function call.
5481cb0ef41Sopenharmony_ci  command stepOut
5491cb0ef41Sopenharmony_ci
5501cb0ef41Sopenharmony_ci  # Steps over the statement.
5511cb0ef41Sopenharmony_ci  command stepOver
5521cb0ef41Sopenharmony_ci    parameters
5531cb0ef41Sopenharmony_ci      # The skipList specifies location ranges that should be skipped on step over.
5541cb0ef41Sopenharmony_ci      experimental optional array of LocationRange skipList
5551cb0ef41Sopenharmony_ci
5561cb0ef41Sopenharmony_ci  # Fired when breakpoint is resolved to an actual script and location.
5571cb0ef41Sopenharmony_ci  event breakpointResolved
5581cb0ef41Sopenharmony_ci    parameters
5591cb0ef41Sopenharmony_ci      # Breakpoint unique identifier.
5601cb0ef41Sopenharmony_ci      BreakpointId breakpointId
5611cb0ef41Sopenharmony_ci      # Actual breakpoint location.
5621cb0ef41Sopenharmony_ci      Location location
5631cb0ef41Sopenharmony_ci
5641cb0ef41Sopenharmony_ci  # Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
5651cb0ef41Sopenharmony_ci  event paused
5661cb0ef41Sopenharmony_ci    parameters
5671cb0ef41Sopenharmony_ci      # Call stack the virtual machine stopped on.
5681cb0ef41Sopenharmony_ci      array of CallFrame callFrames
5691cb0ef41Sopenharmony_ci      # Pause reason.
5701cb0ef41Sopenharmony_ci      enum reason
5711cb0ef41Sopenharmony_ci        ambiguous
5721cb0ef41Sopenharmony_ci        assert
5731cb0ef41Sopenharmony_ci        CSPViolation
5741cb0ef41Sopenharmony_ci        debugCommand
5751cb0ef41Sopenharmony_ci        DOM
5761cb0ef41Sopenharmony_ci        EventListener
5771cb0ef41Sopenharmony_ci        exception
5781cb0ef41Sopenharmony_ci        instrumentation
5791cb0ef41Sopenharmony_ci        OOM
5801cb0ef41Sopenharmony_ci        other
5811cb0ef41Sopenharmony_ci        promiseRejection
5821cb0ef41Sopenharmony_ci        XHR
5831cb0ef41Sopenharmony_ci        step
5841cb0ef41Sopenharmony_ci      # Object containing break-specific auxiliary properties.
5851cb0ef41Sopenharmony_ci      optional object data
5861cb0ef41Sopenharmony_ci      # Hit breakpoints IDs
5871cb0ef41Sopenharmony_ci      optional array of string hitBreakpoints
5881cb0ef41Sopenharmony_ci      # Async stack trace, if any.
5891cb0ef41Sopenharmony_ci      optional Runtime.StackTrace asyncStackTrace
5901cb0ef41Sopenharmony_ci      # Async stack trace, if any.
5911cb0ef41Sopenharmony_ci      experimental optional Runtime.StackTraceId asyncStackTraceId
5921cb0ef41Sopenharmony_ci      # Never present, will be removed.
5931cb0ef41Sopenharmony_ci      experimental deprecated optional Runtime.StackTraceId asyncCallStackTraceId
5941cb0ef41Sopenharmony_ci
5951cb0ef41Sopenharmony_ci  # Fired when the virtual machine resumed execution.
5961cb0ef41Sopenharmony_ci  event resumed
5971cb0ef41Sopenharmony_ci
5981cb0ef41Sopenharmony_ci  # Enum of possible script languages.
5991cb0ef41Sopenharmony_ci  type ScriptLanguage extends string
6001cb0ef41Sopenharmony_ci    enum
6011cb0ef41Sopenharmony_ci      JavaScript
6021cb0ef41Sopenharmony_ci      WebAssembly
6031cb0ef41Sopenharmony_ci
6041cb0ef41Sopenharmony_ci  # Debug symbols available for a wasm script.
6051cb0ef41Sopenharmony_ci  type DebugSymbols extends object
6061cb0ef41Sopenharmony_ci    properties
6071cb0ef41Sopenharmony_ci      # Type of the debug symbols.
6081cb0ef41Sopenharmony_ci      enum type
6091cb0ef41Sopenharmony_ci        None
6101cb0ef41Sopenharmony_ci        SourceMap
6111cb0ef41Sopenharmony_ci        EmbeddedDWARF
6121cb0ef41Sopenharmony_ci        ExternalDWARF
6131cb0ef41Sopenharmony_ci      # URL of the external symbol source.
6141cb0ef41Sopenharmony_ci      optional string externalURL
6151cb0ef41Sopenharmony_ci
6161cb0ef41Sopenharmony_ci  # Fired when virtual machine fails to parse the script.
6171cb0ef41Sopenharmony_ci  event scriptFailedToParse
6181cb0ef41Sopenharmony_ci    parameters
6191cb0ef41Sopenharmony_ci      # Identifier of the script parsed.
6201cb0ef41Sopenharmony_ci      Runtime.ScriptId scriptId
6211cb0ef41Sopenharmony_ci      # URL or name of the script parsed (if any).
6221cb0ef41Sopenharmony_ci      string url
6231cb0ef41Sopenharmony_ci      # Line offset of the script within the resource with given URL (for script tags).
6241cb0ef41Sopenharmony_ci      integer startLine
6251cb0ef41Sopenharmony_ci      # Column offset of the script within the resource with given URL.
6261cb0ef41Sopenharmony_ci      integer startColumn
6271cb0ef41Sopenharmony_ci      # Last line of the script.
6281cb0ef41Sopenharmony_ci      integer endLine
6291cb0ef41Sopenharmony_ci      # Length of the last line of the script.
6301cb0ef41Sopenharmony_ci      integer endColumn
6311cb0ef41Sopenharmony_ci      # Specifies script creation context.
6321cb0ef41Sopenharmony_ci      Runtime.ExecutionContextId executionContextId
6331cb0ef41Sopenharmony_ci      # Content hash of the script, SHA-256.
6341cb0ef41Sopenharmony_ci      string hash
6351cb0ef41Sopenharmony_ci      # Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
6361cb0ef41Sopenharmony_ci      optional object executionContextAuxData
6371cb0ef41Sopenharmony_ci      # URL of source map associated with script (if any).
6381cb0ef41Sopenharmony_ci      optional string sourceMapURL
6391cb0ef41Sopenharmony_ci      # True, if this script has sourceURL.
6401cb0ef41Sopenharmony_ci      optional boolean hasSourceURL
6411cb0ef41Sopenharmony_ci      # True, if this script is ES6 module.
6421cb0ef41Sopenharmony_ci      optional boolean isModule
6431cb0ef41Sopenharmony_ci      # This script length.
6441cb0ef41Sopenharmony_ci      optional integer length
6451cb0ef41Sopenharmony_ci      # JavaScript top stack frame of where the script parsed event was triggered if available.
6461cb0ef41Sopenharmony_ci      experimental optional Runtime.StackTrace stackTrace
6471cb0ef41Sopenharmony_ci      # If the scriptLanguage is WebAssembly, the code section offset in the module.
6481cb0ef41Sopenharmony_ci      experimental optional integer codeOffset
6491cb0ef41Sopenharmony_ci      # The language of the script.
6501cb0ef41Sopenharmony_ci      experimental optional Debugger.ScriptLanguage scriptLanguage
6511cb0ef41Sopenharmony_ci      # The name the embedder supplied for this script.
6521cb0ef41Sopenharmony_ci      experimental optional string embedderName
6531cb0ef41Sopenharmony_ci
6541cb0ef41Sopenharmony_ci  # Fired when virtual machine parses script. This event is also fired for all known and uncollected
6551cb0ef41Sopenharmony_ci  # scripts upon enabling debugger.
6561cb0ef41Sopenharmony_ci  event scriptParsed
6571cb0ef41Sopenharmony_ci    parameters
6581cb0ef41Sopenharmony_ci      # Identifier of the script parsed.
6591cb0ef41Sopenharmony_ci      Runtime.ScriptId scriptId
6601cb0ef41Sopenharmony_ci      # URL or name of the script parsed (if any).
6611cb0ef41Sopenharmony_ci      string url
6621cb0ef41Sopenharmony_ci      # Line offset of the script within the resource with given URL (for script tags).
6631cb0ef41Sopenharmony_ci      integer startLine
6641cb0ef41Sopenharmony_ci      # Column offset of the script within the resource with given URL.
6651cb0ef41Sopenharmony_ci      integer startColumn
6661cb0ef41Sopenharmony_ci      # Last line of the script.
6671cb0ef41Sopenharmony_ci      integer endLine
6681cb0ef41Sopenharmony_ci      # Length of the last line of the script.
6691cb0ef41Sopenharmony_ci      integer endColumn
6701cb0ef41Sopenharmony_ci      # Specifies script creation context.
6711cb0ef41Sopenharmony_ci      Runtime.ExecutionContextId executionContextId
6721cb0ef41Sopenharmony_ci      # Content hash of the script, SHA-256.
6731cb0ef41Sopenharmony_ci      string hash
6741cb0ef41Sopenharmony_ci      # Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
6751cb0ef41Sopenharmony_ci      optional object executionContextAuxData
6761cb0ef41Sopenharmony_ci      # True, if this script is generated as a result of the live edit operation.
6771cb0ef41Sopenharmony_ci      experimental optional boolean isLiveEdit
6781cb0ef41Sopenharmony_ci      # URL of source map associated with script (if any).
6791cb0ef41Sopenharmony_ci      optional string sourceMapURL
6801cb0ef41Sopenharmony_ci      # True, if this script has sourceURL.
6811cb0ef41Sopenharmony_ci      optional boolean hasSourceURL
6821cb0ef41Sopenharmony_ci      # True, if this script is ES6 module.
6831cb0ef41Sopenharmony_ci      optional boolean isModule
6841cb0ef41Sopenharmony_ci      # This script length.
6851cb0ef41Sopenharmony_ci      optional integer length
6861cb0ef41Sopenharmony_ci      # JavaScript top stack frame of where the script parsed event was triggered if available.
6871cb0ef41Sopenharmony_ci      experimental optional Runtime.StackTrace stackTrace
6881cb0ef41Sopenharmony_ci      # If the scriptLanguage is WebAssembly, the code section offset in the module.
6891cb0ef41Sopenharmony_ci      experimental optional integer codeOffset
6901cb0ef41Sopenharmony_ci      # The language of the script.
6911cb0ef41Sopenharmony_ci      experimental optional Debugger.ScriptLanguage scriptLanguage
6921cb0ef41Sopenharmony_ci      # If the scriptLanguage is WebASsembly, the source of debug symbols for the module.
6931cb0ef41Sopenharmony_ci      experimental optional Debugger.DebugSymbols debugSymbols
6941cb0ef41Sopenharmony_ci      # The name the embedder supplied for this script.
6951cb0ef41Sopenharmony_ci      experimental optional string embedderName
6961cb0ef41Sopenharmony_ci
6971cb0ef41Sopenharmony_ciexperimental domain HeapProfiler
6981cb0ef41Sopenharmony_ci  depends on Runtime
6991cb0ef41Sopenharmony_ci
7001cb0ef41Sopenharmony_ci  # Heap snapshot object id.
7011cb0ef41Sopenharmony_ci  type HeapSnapshotObjectId extends string
7021cb0ef41Sopenharmony_ci
7031cb0ef41Sopenharmony_ci  # Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
7041cb0ef41Sopenharmony_ci  type SamplingHeapProfileNode extends object
7051cb0ef41Sopenharmony_ci    properties
7061cb0ef41Sopenharmony_ci      # Function location.
7071cb0ef41Sopenharmony_ci      Runtime.CallFrame callFrame
7081cb0ef41Sopenharmony_ci      # Allocations size in bytes for the node excluding children.
7091cb0ef41Sopenharmony_ci      number selfSize
7101cb0ef41Sopenharmony_ci      # Node id. Ids are unique across all profiles collected between startSampling and stopSampling.
7111cb0ef41Sopenharmony_ci      integer id
7121cb0ef41Sopenharmony_ci      # Child nodes.
7131cb0ef41Sopenharmony_ci      array of SamplingHeapProfileNode children
7141cb0ef41Sopenharmony_ci
7151cb0ef41Sopenharmony_ci  # A single sample from a sampling profile.
7161cb0ef41Sopenharmony_ci  type SamplingHeapProfileSample extends object
7171cb0ef41Sopenharmony_ci    properties
7181cb0ef41Sopenharmony_ci      # Allocation size in bytes attributed to the sample.
7191cb0ef41Sopenharmony_ci      number size
7201cb0ef41Sopenharmony_ci      # Id of the corresponding profile tree node.
7211cb0ef41Sopenharmony_ci      integer nodeId
7221cb0ef41Sopenharmony_ci      # Time-ordered sample ordinal number. It is unique across all profiles retrieved
7231cb0ef41Sopenharmony_ci      # between startSampling and stopSampling.
7241cb0ef41Sopenharmony_ci      number ordinal
7251cb0ef41Sopenharmony_ci
7261cb0ef41Sopenharmony_ci  # Sampling profile.
7271cb0ef41Sopenharmony_ci  type SamplingHeapProfile extends object
7281cb0ef41Sopenharmony_ci    properties
7291cb0ef41Sopenharmony_ci      SamplingHeapProfileNode head
7301cb0ef41Sopenharmony_ci      array of SamplingHeapProfileSample samples
7311cb0ef41Sopenharmony_ci
7321cb0ef41Sopenharmony_ci  # Enables console to refer to the node with given id via $x (see Command Line API for more details
7331cb0ef41Sopenharmony_ci  # $x functions).
7341cb0ef41Sopenharmony_ci  command addInspectedHeapObject
7351cb0ef41Sopenharmony_ci    parameters
7361cb0ef41Sopenharmony_ci      # Heap snapshot object id to be accessible by means of $x command line API.
7371cb0ef41Sopenharmony_ci      HeapSnapshotObjectId heapObjectId
7381cb0ef41Sopenharmony_ci
7391cb0ef41Sopenharmony_ci  command collectGarbage
7401cb0ef41Sopenharmony_ci
7411cb0ef41Sopenharmony_ci  command disable
7421cb0ef41Sopenharmony_ci
7431cb0ef41Sopenharmony_ci  command enable
7441cb0ef41Sopenharmony_ci
7451cb0ef41Sopenharmony_ci  command getHeapObjectId
7461cb0ef41Sopenharmony_ci    parameters
7471cb0ef41Sopenharmony_ci      # Identifier of the object to get heap object id for.
7481cb0ef41Sopenharmony_ci      Runtime.RemoteObjectId objectId
7491cb0ef41Sopenharmony_ci    returns
7501cb0ef41Sopenharmony_ci      # Id of the heap snapshot object corresponding to the passed remote object id.
7511cb0ef41Sopenharmony_ci      HeapSnapshotObjectId heapSnapshotObjectId
7521cb0ef41Sopenharmony_ci
7531cb0ef41Sopenharmony_ci  command getObjectByHeapObjectId
7541cb0ef41Sopenharmony_ci    parameters
7551cb0ef41Sopenharmony_ci      HeapSnapshotObjectId objectId
7561cb0ef41Sopenharmony_ci      # Symbolic group name that can be used to release multiple objects.
7571cb0ef41Sopenharmony_ci      optional string objectGroup
7581cb0ef41Sopenharmony_ci    returns
7591cb0ef41Sopenharmony_ci      # Evaluation result.
7601cb0ef41Sopenharmony_ci      Runtime.RemoteObject result
7611cb0ef41Sopenharmony_ci
7621cb0ef41Sopenharmony_ci  command getSamplingProfile
7631cb0ef41Sopenharmony_ci    returns
7641cb0ef41Sopenharmony_ci      # Return the sampling profile being collected.
7651cb0ef41Sopenharmony_ci      SamplingHeapProfile profile
7661cb0ef41Sopenharmony_ci
7671cb0ef41Sopenharmony_ci  command startSampling
7681cb0ef41Sopenharmony_ci    parameters
7691cb0ef41Sopenharmony_ci      # Average sample interval in bytes. Poisson distribution is used for the intervals. The
7701cb0ef41Sopenharmony_ci      # default value is 32768 bytes.
7711cb0ef41Sopenharmony_ci      optional number samplingInterval
7721cb0ef41Sopenharmony_ci      # By default, the sampling heap profiler reports only objects which are
7731cb0ef41Sopenharmony_ci      # still alive when the profile is returned via getSamplingProfile or
7741cb0ef41Sopenharmony_ci      # stopSampling, which is useful for determining what functions contribute
7751cb0ef41Sopenharmony_ci      # the most to steady-state memory usage. This flag instructs the sampling
7761cb0ef41Sopenharmony_ci      # heap profiler to also include information about objects discarded by
7771cb0ef41Sopenharmony_ci      # major GC, which will show which functions cause large temporary memory
7781cb0ef41Sopenharmony_ci      # usage or long GC pauses.
7791cb0ef41Sopenharmony_ci      optional boolean includeObjectsCollectedByMajorGC
7801cb0ef41Sopenharmony_ci      # By default, the sampling heap profiler reports only objects which are
7811cb0ef41Sopenharmony_ci      # still alive when the profile is returned via getSamplingProfile or
7821cb0ef41Sopenharmony_ci      # stopSampling, which is useful for determining what functions contribute
7831cb0ef41Sopenharmony_ci      # the most to steady-state memory usage. This flag instructs the sampling
7841cb0ef41Sopenharmony_ci      # heap profiler to also include information about objects discarded by
7851cb0ef41Sopenharmony_ci      # minor GC, which is useful when tuning a latency-sensitive application
7861cb0ef41Sopenharmony_ci      # for minimal GC activity.
7871cb0ef41Sopenharmony_ci      optional boolean includeObjectsCollectedByMinorGC
7881cb0ef41Sopenharmony_ci
7891cb0ef41Sopenharmony_ci  command startTrackingHeapObjects
7901cb0ef41Sopenharmony_ci    parameters
7911cb0ef41Sopenharmony_ci      optional boolean trackAllocations
7921cb0ef41Sopenharmony_ci
7931cb0ef41Sopenharmony_ci  command stopSampling
7941cb0ef41Sopenharmony_ci    returns
7951cb0ef41Sopenharmony_ci      # Recorded sampling heap profile.
7961cb0ef41Sopenharmony_ci      SamplingHeapProfile profile
7971cb0ef41Sopenharmony_ci
7981cb0ef41Sopenharmony_ci  command stopTrackingHeapObjects
7991cb0ef41Sopenharmony_ci    parameters
8001cb0ef41Sopenharmony_ci      # If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken
8011cb0ef41Sopenharmony_ci      # when the tracking is stopped.
8021cb0ef41Sopenharmony_ci      optional boolean reportProgress
8031cb0ef41Sopenharmony_ci      # Deprecated in favor of `exposeInternals`.
8041cb0ef41Sopenharmony_ci      deprecated optional boolean treatGlobalObjectsAsRoots
8051cb0ef41Sopenharmony_ci      # If true, numerical values are included in the snapshot
8061cb0ef41Sopenharmony_ci      optional boolean captureNumericValue
8071cb0ef41Sopenharmony_ci      # If true, exposes internals of the snapshot.
8081cb0ef41Sopenharmony_ci      experimental optional boolean exposeInternals
8091cb0ef41Sopenharmony_ci
8101cb0ef41Sopenharmony_ci  command takeHeapSnapshot
8111cb0ef41Sopenharmony_ci    parameters
8121cb0ef41Sopenharmony_ci      # If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
8131cb0ef41Sopenharmony_ci      optional boolean reportProgress
8141cb0ef41Sopenharmony_ci      # If true, a raw snapshot without artificial roots will be generated.
8151cb0ef41Sopenharmony_ci      # Deprecated in favor of `exposeInternals`.
8161cb0ef41Sopenharmony_ci      deprecated optional boolean treatGlobalObjectsAsRoots
8171cb0ef41Sopenharmony_ci      # If true, numerical values are included in the snapshot
8181cb0ef41Sopenharmony_ci      optional boolean captureNumericValue
8191cb0ef41Sopenharmony_ci      # If true, exposes internals of the snapshot.
8201cb0ef41Sopenharmony_ci      experimental optional boolean exposeInternals
8211cb0ef41Sopenharmony_ci
8221cb0ef41Sopenharmony_ci  event addHeapSnapshotChunk
8231cb0ef41Sopenharmony_ci    parameters
8241cb0ef41Sopenharmony_ci      string chunk
8251cb0ef41Sopenharmony_ci
8261cb0ef41Sopenharmony_ci  # If heap objects tracking has been started then backend may send update for one or more fragments
8271cb0ef41Sopenharmony_ci  event heapStatsUpdate
8281cb0ef41Sopenharmony_ci    parameters
8291cb0ef41Sopenharmony_ci      # An array of triplets. Each triplet describes a fragment. The first integer is the fragment
8301cb0ef41Sopenharmony_ci      # index, the second integer is a total count of objects for the fragment, the third integer is
8311cb0ef41Sopenharmony_ci      # a total size of the objects for the fragment.
8321cb0ef41Sopenharmony_ci      array of integer statsUpdate
8331cb0ef41Sopenharmony_ci
8341cb0ef41Sopenharmony_ci  # If heap objects tracking has been started then backend regularly sends a current value for last
8351cb0ef41Sopenharmony_ci  # seen object id and corresponding timestamp. If the were changes in the heap since last event
8361cb0ef41Sopenharmony_ci  # then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
8371cb0ef41Sopenharmony_ci  event lastSeenObjectId
8381cb0ef41Sopenharmony_ci    parameters
8391cb0ef41Sopenharmony_ci      integer lastSeenObjectId
8401cb0ef41Sopenharmony_ci      number timestamp
8411cb0ef41Sopenharmony_ci
8421cb0ef41Sopenharmony_ci  event reportHeapSnapshotProgress
8431cb0ef41Sopenharmony_ci    parameters
8441cb0ef41Sopenharmony_ci      integer done
8451cb0ef41Sopenharmony_ci      integer total
8461cb0ef41Sopenharmony_ci      optional boolean finished
8471cb0ef41Sopenharmony_ci
8481cb0ef41Sopenharmony_ci  event resetProfiles
8491cb0ef41Sopenharmony_ci
8501cb0ef41Sopenharmony_cidomain Profiler
8511cb0ef41Sopenharmony_ci  depends on Runtime
8521cb0ef41Sopenharmony_ci  depends on Debugger
8531cb0ef41Sopenharmony_ci
8541cb0ef41Sopenharmony_ci  # Profile node. Holds callsite information, execution statistics and child nodes.
8551cb0ef41Sopenharmony_ci  type ProfileNode extends object
8561cb0ef41Sopenharmony_ci    properties
8571cb0ef41Sopenharmony_ci      # Unique id of the node.
8581cb0ef41Sopenharmony_ci      integer id
8591cb0ef41Sopenharmony_ci      # Function location.
8601cb0ef41Sopenharmony_ci      Runtime.CallFrame callFrame
8611cb0ef41Sopenharmony_ci      # Number of samples where this node was on top of the call stack.
8621cb0ef41Sopenharmony_ci      optional integer hitCount
8631cb0ef41Sopenharmony_ci      # Child node ids.
8641cb0ef41Sopenharmony_ci      optional array of integer children
8651cb0ef41Sopenharmony_ci      # The reason of being not optimized. The function may be deoptimized or marked as don't
8661cb0ef41Sopenharmony_ci      # optimize.
8671cb0ef41Sopenharmony_ci      optional string deoptReason
8681cb0ef41Sopenharmony_ci      # An array of source position ticks.
8691cb0ef41Sopenharmony_ci      optional array of PositionTickInfo positionTicks
8701cb0ef41Sopenharmony_ci
8711cb0ef41Sopenharmony_ci  # Profile.
8721cb0ef41Sopenharmony_ci  type Profile extends object
8731cb0ef41Sopenharmony_ci    properties
8741cb0ef41Sopenharmony_ci      # The list of profile nodes. First item is the root node.
8751cb0ef41Sopenharmony_ci      array of ProfileNode nodes
8761cb0ef41Sopenharmony_ci      # Profiling start timestamp in microseconds.
8771cb0ef41Sopenharmony_ci      number startTime
8781cb0ef41Sopenharmony_ci      # Profiling end timestamp in microseconds.
8791cb0ef41Sopenharmony_ci      number endTime
8801cb0ef41Sopenharmony_ci      # Ids of samples top nodes.
8811cb0ef41Sopenharmony_ci      optional array of integer samples
8821cb0ef41Sopenharmony_ci      # Time intervals between adjacent samples in microseconds. The first delta is relative to the
8831cb0ef41Sopenharmony_ci      # profile startTime.
8841cb0ef41Sopenharmony_ci      optional array of integer timeDeltas
8851cb0ef41Sopenharmony_ci
8861cb0ef41Sopenharmony_ci  # Specifies a number of samples attributed to a certain source position.
8871cb0ef41Sopenharmony_ci  type PositionTickInfo extends object
8881cb0ef41Sopenharmony_ci    properties
8891cb0ef41Sopenharmony_ci      # Source line number (1-based).
8901cb0ef41Sopenharmony_ci      integer line
8911cb0ef41Sopenharmony_ci      # Number of samples attributed to the source line.
8921cb0ef41Sopenharmony_ci      integer ticks
8931cb0ef41Sopenharmony_ci
8941cb0ef41Sopenharmony_ci  # Coverage data for a source range.
8951cb0ef41Sopenharmony_ci  type CoverageRange extends object
8961cb0ef41Sopenharmony_ci    properties
8971cb0ef41Sopenharmony_ci      # JavaScript script source offset for the range start.
8981cb0ef41Sopenharmony_ci      integer startOffset
8991cb0ef41Sopenharmony_ci      # JavaScript script source offset for the range end.
9001cb0ef41Sopenharmony_ci      integer endOffset
9011cb0ef41Sopenharmony_ci      # Collected execution count of the source range.
9021cb0ef41Sopenharmony_ci      integer count
9031cb0ef41Sopenharmony_ci
9041cb0ef41Sopenharmony_ci  # Coverage data for a JavaScript function.
9051cb0ef41Sopenharmony_ci  type FunctionCoverage extends object
9061cb0ef41Sopenharmony_ci    properties
9071cb0ef41Sopenharmony_ci      # JavaScript function name.
9081cb0ef41Sopenharmony_ci      string functionName
9091cb0ef41Sopenharmony_ci      # Source ranges inside the function with coverage data.
9101cb0ef41Sopenharmony_ci      array of CoverageRange ranges
9111cb0ef41Sopenharmony_ci      # Whether coverage data for this function has block granularity.
9121cb0ef41Sopenharmony_ci      boolean isBlockCoverage
9131cb0ef41Sopenharmony_ci
9141cb0ef41Sopenharmony_ci  # Coverage data for a JavaScript script.
9151cb0ef41Sopenharmony_ci  type ScriptCoverage extends object
9161cb0ef41Sopenharmony_ci    properties
9171cb0ef41Sopenharmony_ci      # JavaScript script id.
9181cb0ef41Sopenharmony_ci      Runtime.ScriptId scriptId
9191cb0ef41Sopenharmony_ci      # JavaScript script name or url.
9201cb0ef41Sopenharmony_ci      string url
9211cb0ef41Sopenharmony_ci      # Functions contained in the script that has coverage data.
9221cb0ef41Sopenharmony_ci      array of FunctionCoverage functions
9231cb0ef41Sopenharmony_ci
9241cb0ef41Sopenharmony_ci  command disable
9251cb0ef41Sopenharmony_ci
9261cb0ef41Sopenharmony_ci  command enable
9271cb0ef41Sopenharmony_ci
9281cb0ef41Sopenharmony_ci  # Collect coverage data for the current isolate. The coverage data may be incomplete due to
9291cb0ef41Sopenharmony_ci  # garbage collection.
9301cb0ef41Sopenharmony_ci  command getBestEffortCoverage
9311cb0ef41Sopenharmony_ci    returns
9321cb0ef41Sopenharmony_ci      # Coverage data for the current isolate.
9331cb0ef41Sopenharmony_ci      array of ScriptCoverage result
9341cb0ef41Sopenharmony_ci
9351cb0ef41Sopenharmony_ci  # Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
9361cb0ef41Sopenharmony_ci  command setSamplingInterval
9371cb0ef41Sopenharmony_ci    parameters
9381cb0ef41Sopenharmony_ci      # New sampling interval in microseconds.
9391cb0ef41Sopenharmony_ci      integer interval
9401cb0ef41Sopenharmony_ci
9411cb0ef41Sopenharmony_ci  command start
9421cb0ef41Sopenharmony_ci
9431cb0ef41Sopenharmony_ci  # Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code
9441cb0ef41Sopenharmony_ci  # coverage may be incomplete. Enabling prevents running optimized code and resets execution
9451cb0ef41Sopenharmony_ci  # counters.
9461cb0ef41Sopenharmony_ci  command startPreciseCoverage
9471cb0ef41Sopenharmony_ci    parameters
9481cb0ef41Sopenharmony_ci      # Collect accurate call counts beyond simple 'covered' or 'not covered'.
9491cb0ef41Sopenharmony_ci      optional boolean callCount
9501cb0ef41Sopenharmony_ci      # Collect block-based coverage.
9511cb0ef41Sopenharmony_ci      optional boolean detailed
9521cb0ef41Sopenharmony_ci      # Allow the backend to send updates on its own initiative
9531cb0ef41Sopenharmony_ci      optional boolean allowTriggeredUpdates
9541cb0ef41Sopenharmony_ci    returns
9551cb0ef41Sopenharmony_ci      # Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
9561cb0ef41Sopenharmony_ci      number timestamp
9571cb0ef41Sopenharmony_ci
9581cb0ef41Sopenharmony_ci  command stop
9591cb0ef41Sopenharmony_ci    returns
9601cb0ef41Sopenharmony_ci      # Recorded profile.
9611cb0ef41Sopenharmony_ci      Profile profile
9621cb0ef41Sopenharmony_ci
9631cb0ef41Sopenharmony_ci  # Disable precise code coverage. Disabling releases unnecessary execution count records and allows
9641cb0ef41Sopenharmony_ci  # executing optimized code.
9651cb0ef41Sopenharmony_ci  command stopPreciseCoverage
9661cb0ef41Sopenharmony_ci
9671cb0ef41Sopenharmony_ci  # Collect coverage data for the current isolate, and resets execution counters. Precise code
9681cb0ef41Sopenharmony_ci  # coverage needs to have started.
9691cb0ef41Sopenharmony_ci  command takePreciseCoverage
9701cb0ef41Sopenharmony_ci    returns
9711cb0ef41Sopenharmony_ci      # Coverage data for the current isolate.
9721cb0ef41Sopenharmony_ci      array of ScriptCoverage result
9731cb0ef41Sopenharmony_ci      # Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
9741cb0ef41Sopenharmony_ci      number timestamp
9751cb0ef41Sopenharmony_ci
9761cb0ef41Sopenharmony_ci  event consoleProfileFinished
9771cb0ef41Sopenharmony_ci    parameters
9781cb0ef41Sopenharmony_ci      string id
9791cb0ef41Sopenharmony_ci      # Location of console.profileEnd().
9801cb0ef41Sopenharmony_ci      Debugger.Location location
9811cb0ef41Sopenharmony_ci      Profile profile
9821cb0ef41Sopenharmony_ci      # Profile title passed as an argument to console.profile().
9831cb0ef41Sopenharmony_ci      optional string title
9841cb0ef41Sopenharmony_ci
9851cb0ef41Sopenharmony_ci  # Sent when new profile recording is started using console.profile() call.
9861cb0ef41Sopenharmony_ci  event consoleProfileStarted
9871cb0ef41Sopenharmony_ci    parameters
9881cb0ef41Sopenharmony_ci      string id
9891cb0ef41Sopenharmony_ci      # Location of console.profile().
9901cb0ef41Sopenharmony_ci      Debugger.Location location
9911cb0ef41Sopenharmony_ci      # Profile title passed as an argument to console.profile().
9921cb0ef41Sopenharmony_ci      optional string title
9931cb0ef41Sopenharmony_ci
9941cb0ef41Sopenharmony_ci  # Reports coverage delta since the last poll (either from an event like this, or from
9951cb0ef41Sopenharmony_ci  # `takePreciseCoverage` for the current isolate. May only be sent if precise code
9961cb0ef41Sopenharmony_ci  # coverage has been started. This event can be trigged by the embedder to, for example,
9971cb0ef41Sopenharmony_ci  # trigger collection of coverage data immediately at a certain point in time.
9981cb0ef41Sopenharmony_ci  experimental event preciseCoverageDeltaUpdate
9991cb0ef41Sopenharmony_ci    parameters
10001cb0ef41Sopenharmony_ci      # Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
10011cb0ef41Sopenharmony_ci      number timestamp
10021cb0ef41Sopenharmony_ci      # Identifier for distinguishing coverage events.
10031cb0ef41Sopenharmony_ci      string occasion
10041cb0ef41Sopenharmony_ci      # Coverage data for the current isolate.
10051cb0ef41Sopenharmony_ci      array of ScriptCoverage result
10061cb0ef41Sopenharmony_ci
10071cb0ef41Sopenharmony_ci# Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects.
10081cb0ef41Sopenharmony_ci# Evaluation results are returned as mirror object that expose object type, string representation
10091cb0ef41Sopenharmony_ci# and unique identifier that can be used for further object reference. Original objects are
10101cb0ef41Sopenharmony_ci# maintained in memory unless they are either explicitly released or are released along with the
10111cb0ef41Sopenharmony_ci# other objects in their object group.
10121cb0ef41Sopenharmony_cidomain Runtime
10131cb0ef41Sopenharmony_ci
10141cb0ef41Sopenharmony_ci  # Unique script identifier.
10151cb0ef41Sopenharmony_ci  type ScriptId extends string
10161cb0ef41Sopenharmony_ci
10171cb0ef41Sopenharmony_ci  # Represents the value serialiazed by the WebDriver BiDi specification
10181cb0ef41Sopenharmony_ci  # https://w3c.github.io/webdriver-bidi.
10191cb0ef41Sopenharmony_ci  type WebDriverValue extends object
10201cb0ef41Sopenharmony_ci    properties
10211cb0ef41Sopenharmony_ci      enum type
10221cb0ef41Sopenharmony_ci        undefined
10231cb0ef41Sopenharmony_ci        null
10241cb0ef41Sopenharmony_ci        string
10251cb0ef41Sopenharmony_ci        number
10261cb0ef41Sopenharmony_ci        boolean
10271cb0ef41Sopenharmony_ci        bigint
10281cb0ef41Sopenharmony_ci        regexp
10291cb0ef41Sopenharmony_ci        date
10301cb0ef41Sopenharmony_ci        symbol
10311cb0ef41Sopenharmony_ci        array
10321cb0ef41Sopenharmony_ci        object
10331cb0ef41Sopenharmony_ci        function
10341cb0ef41Sopenharmony_ci        map
10351cb0ef41Sopenharmony_ci        set
10361cb0ef41Sopenharmony_ci        weakmap
10371cb0ef41Sopenharmony_ci        weakset
10381cb0ef41Sopenharmony_ci        error
10391cb0ef41Sopenharmony_ci        proxy
10401cb0ef41Sopenharmony_ci        promise
10411cb0ef41Sopenharmony_ci        typedarray
10421cb0ef41Sopenharmony_ci        arraybuffer
10431cb0ef41Sopenharmony_ci        node
10441cb0ef41Sopenharmony_ci        window
10451cb0ef41Sopenharmony_ci      optional any value
10461cb0ef41Sopenharmony_ci      optional string objectId
10471cb0ef41Sopenharmony_ci
10481cb0ef41Sopenharmony_ci  # Unique object identifier.
10491cb0ef41Sopenharmony_ci  type RemoteObjectId extends string
10501cb0ef41Sopenharmony_ci
10511cb0ef41Sopenharmony_ci  # Primitive value which cannot be JSON-stringified. Includes values `-0`, `NaN`, `Infinity`,
10521cb0ef41Sopenharmony_ci  # `-Infinity`, and bigint literals.
10531cb0ef41Sopenharmony_ci  type UnserializableValue extends string
10541cb0ef41Sopenharmony_ci
10551cb0ef41Sopenharmony_ci  # Mirror object referencing original JavaScript object.
10561cb0ef41Sopenharmony_ci  type RemoteObject extends object
10571cb0ef41Sopenharmony_ci    properties
10581cb0ef41Sopenharmony_ci      # Object type.
10591cb0ef41Sopenharmony_ci      enum type
10601cb0ef41Sopenharmony_ci        object
10611cb0ef41Sopenharmony_ci        function
10621cb0ef41Sopenharmony_ci        undefined
10631cb0ef41Sopenharmony_ci        string
10641cb0ef41Sopenharmony_ci        number
10651cb0ef41Sopenharmony_ci        boolean
10661cb0ef41Sopenharmony_ci        symbol
10671cb0ef41Sopenharmony_ci        bigint
10681cb0ef41Sopenharmony_ci      # Object subtype hint. Specified for `object` type values only.
10691cb0ef41Sopenharmony_ci      # NOTE: If you change anything here, make sure to also update
10701cb0ef41Sopenharmony_ci      # `subtype` in `ObjectPreview` and `PropertyPreview` below.
10711cb0ef41Sopenharmony_ci      optional enum subtype
10721cb0ef41Sopenharmony_ci        array
10731cb0ef41Sopenharmony_ci        null
10741cb0ef41Sopenharmony_ci        node
10751cb0ef41Sopenharmony_ci        regexp
10761cb0ef41Sopenharmony_ci        date
10771cb0ef41Sopenharmony_ci        map
10781cb0ef41Sopenharmony_ci        set
10791cb0ef41Sopenharmony_ci        weakmap
10801cb0ef41Sopenharmony_ci        weakset
10811cb0ef41Sopenharmony_ci        iterator
10821cb0ef41Sopenharmony_ci        generator
10831cb0ef41Sopenharmony_ci        error
10841cb0ef41Sopenharmony_ci        proxy
10851cb0ef41Sopenharmony_ci        promise
10861cb0ef41Sopenharmony_ci        typedarray
10871cb0ef41Sopenharmony_ci        arraybuffer
10881cb0ef41Sopenharmony_ci        dataview
10891cb0ef41Sopenharmony_ci        webassemblymemory
10901cb0ef41Sopenharmony_ci        wasmvalue
10911cb0ef41Sopenharmony_ci      # Object class (constructor) name. Specified for `object` type values only.
10921cb0ef41Sopenharmony_ci      optional string className
10931cb0ef41Sopenharmony_ci      # Remote object value in case of primitive values or JSON values (if it was requested).
10941cb0ef41Sopenharmony_ci      optional any value
10951cb0ef41Sopenharmony_ci      # Primitive value which can not be JSON-stringified does not have `value`, but gets this
10961cb0ef41Sopenharmony_ci      # property.
10971cb0ef41Sopenharmony_ci      optional UnserializableValue unserializableValue
10981cb0ef41Sopenharmony_ci      # String representation of the object.
10991cb0ef41Sopenharmony_ci      optional string description
11001cb0ef41Sopenharmony_ci      # WebDriver BiDi representation of the value.
11011cb0ef41Sopenharmony_ci      experimental optional WebDriverValue webDriverValue
11021cb0ef41Sopenharmony_ci      # Unique object identifier (for non-primitive values).
11031cb0ef41Sopenharmony_ci      optional RemoteObjectId objectId
11041cb0ef41Sopenharmony_ci      # Preview containing abbreviated property values. Specified for `object` type values only.
11051cb0ef41Sopenharmony_ci      experimental optional ObjectPreview preview
11061cb0ef41Sopenharmony_ci      experimental optional CustomPreview customPreview
11071cb0ef41Sopenharmony_ci
11081cb0ef41Sopenharmony_ci  experimental type CustomPreview extends object
11091cb0ef41Sopenharmony_ci    properties
11101cb0ef41Sopenharmony_ci      # The JSON-stringified result of formatter.header(object, config) call.
11111cb0ef41Sopenharmony_ci      # It contains json ML array that represents RemoteObject.
11121cb0ef41Sopenharmony_ci      string header
11131cb0ef41Sopenharmony_ci      # If formatter returns true as a result of formatter.hasBody call then bodyGetterId will
11141cb0ef41Sopenharmony_ci      # contain RemoteObjectId for the function that returns result of formatter.body(object, config) call.
11151cb0ef41Sopenharmony_ci      # The result value is json ML array.
11161cb0ef41Sopenharmony_ci      optional RemoteObjectId bodyGetterId
11171cb0ef41Sopenharmony_ci
11181cb0ef41Sopenharmony_ci  # Object containing abbreviated remote object value.
11191cb0ef41Sopenharmony_ci  experimental type ObjectPreview extends object
11201cb0ef41Sopenharmony_ci    properties
11211cb0ef41Sopenharmony_ci      # Object type.
11221cb0ef41Sopenharmony_ci      enum type
11231cb0ef41Sopenharmony_ci        object
11241cb0ef41Sopenharmony_ci        function
11251cb0ef41Sopenharmony_ci        undefined
11261cb0ef41Sopenharmony_ci        string
11271cb0ef41Sopenharmony_ci        number
11281cb0ef41Sopenharmony_ci        boolean
11291cb0ef41Sopenharmony_ci        symbol
11301cb0ef41Sopenharmony_ci        bigint
11311cb0ef41Sopenharmony_ci      # Object subtype hint. Specified for `object` type values only.
11321cb0ef41Sopenharmony_ci      optional enum subtype
11331cb0ef41Sopenharmony_ci        array
11341cb0ef41Sopenharmony_ci        null
11351cb0ef41Sopenharmony_ci        node
11361cb0ef41Sopenharmony_ci        regexp
11371cb0ef41Sopenharmony_ci        date
11381cb0ef41Sopenharmony_ci        map
11391cb0ef41Sopenharmony_ci        set
11401cb0ef41Sopenharmony_ci        weakmap
11411cb0ef41Sopenharmony_ci        weakset
11421cb0ef41Sopenharmony_ci        iterator
11431cb0ef41Sopenharmony_ci        generator
11441cb0ef41Sopenharmony_ci        error
11451cb0ef41Sopenharmony_ci        proxy
11461cb0ef41Sopenharmony_ci        promise
11471cb0ef41Sopenharmony_ci        typedarray
11481cb0ef41Sopenharmony_ci        arraybuffer
11491cb0ef41Sopenharmony_ci        dataview
11501cb0ef41Sopenharmony_ci        webassemblymemory
11511cb0ef41Sopenharmony_ci        wasmvalue
11521cb0ef41Sopenharmony_ci      # String representation of the object.
11531cb0ef41Sopenharmony_ci      optional string description
11541cb0ef41Sopenharmony_ci      # True iff some of the properties or entries of the original object did not fit.
11551cb0ef41Sopenharmony_ci      boolean overflow
11561cb0ef41Sopenharmony_ci      # List of the properties.
11571cb0ef41Sopenharmony_ci      array of PropertyPreview properties
11581cb0ef41Sopenharmony_ci      # List of the entries. Specified for `map` and `set` subtype values only.
11591cb0ef41Sopenharmony_ci      optional array of EntryPreview entries
11601cb0ef41Sopenharmony_ci
11611cb0ef41Sopenharmony_ci  experimental type PropertyPreview extends object
11621cb0ef41Sopenharmony_ci    properties
11631cb0ef41Sopenharmony_ci      # Property name.
11641cb0ef41Sopenharmony_ci      string name
11651cb0ef41Sopenharmony_ci      # Object type. Accessor means that the property itself is an accessor property.
11661cb0ef41Sopenharmony_ci      enum type
11671cb0ef41Sopenharmony_ci        object
11681cb0ef41Sopenharmony_ci        function
11691cb0ef41Sopenharmony_ci        undefined
11701cb0ef41Sopenharmony_ci        string
11711cb0ef41Sopenharmony_ci        number
11721cb0ef41Sopenharmony_ci        boolean
11731cb0ef41Sopenharmony_ci        symbol
11741cb0ef41Sopenharmony_ci        accessor
11751cb0ef41Sopenharmony_ci        bigint
11761cb0ef41Sopenharmony_ci      # User-friendly property value string.
11771cb0ef41Sopenharmony_ci      optional string value
11781cb0ef41Sopenharmony_ci      # Nested value preview.
11791cb0ef41Sopenharmony_ci      optional ObjectPreview valuePreview
11801cb0ef41Sopenharmony_ci      # Object subtype hint. Specified for `object` type values only.
11811cb0ef41Sopenharmony_ci      optional enum subtype
11821cb0ef41Sopenharmony_ci        array
11831cb0ef41Sopenharmony_ci        null
11841cb0ef41Sopenharmony_ci        node
11851cb0ef41Sopenharmony_ci        regexp
11861cb0ef41Sopenharmony_ci        date
11871cb0ef41Sopenharmony_ci        map
11881cb0ef41Sopenharmony_ci        set
11891cb0ef41Sopenharmony_ci        weakmap
11901cb0ef41Sopenharmony_ci        weakset
11911cb0ef41Sopenharmony_ci        iterator
11921cb0ef41Sopenharmony_ci        generator
11931cb0ef41Sopenharmony_ci        error
11941cb0ef41Sopenharmony_ci        proxy
11951cb0ef41Sopenharmony_ci        promise
11961cb0ef41Sopenharmony_ci        typedarray
11971cb0ef41Sopenharmony_ci        arraybuffer
11981cb0ef41Sopenharmony_ci        dataview
11991cb0ef41Sopenharmony_ci        webassemblymemory
12001cb0ef41Sopenharmony_ci        wasmvalue
12011cb0ef41Sopenharmony_ci
12021cb0ef41Sopenharmony_ci  experimental type EntryPreview extends object
12031cb0ef41Sopenharmony_ci    properties
12041cb0ef41Sopenharmony_ci      # Preview of the key. Specified for map-like collection entries.
12051cb0ef41Sopenharmony_ci      optional ObjectPreview key
12061cb0ef41Sopenharmony_ci      # Preview of the value.
12071cb0ef41Sopenharmony_ci      ObjectPreview value
12081cb0ef41Sopenharmony_ci
12091cb0ef41Sopenharmony_ci  # Object property descriptor.
12101cb0ef41Sopenharmony_ci  type PropertyDescriptor extends object
12111cb0ef41Sopenharmony_ci    properties
12121cb0ef41Sopenharmony_ci      # Property name or symbol description.
12131cb0ef41Sopenharmony_ci      string name
12141cb0ef41Sopenharmony_ci      # The value associated with the property.
12151cb0ef41Sopenharmony_ci      optional RemoteObject value
12161cb0ef41Sopenharmony_ci      # True if the value associated with the property may be changed (data descriptors only).
12171cb0ef41Sopenharmony_ci      optional boolean writable
12181cb0ef41Sopenharmony_ci      # A function which serves as a getter for the property, or `undefined` if there is no getter
12191cb0ef41Sopenharmony_ci      # (accessor descriptors only).
12201cb0ef41Sopenharmony_ci      optional RemoteObject get
12211cb0ef41Sopenharmony_ci      # A function which serves as a setter for the property, or `undefined` if there is no setter
12221cb0ef41Sopenharmony_ci      # (accessor descriptors only).
12231cb0ef41Sopenharmony_ci      optional RemoteObject set
12241cb0ef41Sopenharmony_ci      # True if the type of this property descriptor may be changed and if the property may be
12251cb0ef41Sopenharmony_ci      # deleted from the corresponding object.
12261cb0ef41Sopenharmony_ci      boolean configurable
12271cb0ef41Sopenharmony_ci      # True if this property shows up during enumeration of the properties on the corresponding
12281cb0ef41Sopenharmony_ci      # object.
12291cb0ef41Sopenharmony_ci      boolean enumerable
12301cb0ef41Sopenharmony_ci      # True if the result was thrown during the evaluation.
12311cb0ef41Sopenharmony_ci      optional boolean wasThrown
12321cb0ef41Sopenharmony_ci      # True if the property is owned for the object.
12331cb0ef41Sopenharmony_ci      optional boolean isOwn
12341cb0ef41Sopenharmony_ci      # Property symbol object, if the property is of the `symbol` type.
12351cb0ef41Sopenharmony_ci      optional RemoteObject symbol
12361cb0ef41Sopenharmony_ci
12371cb0ef41Sopenharmony_ci  # Object internal property descriptor. This property isn't normally visible in JavaScript code.
12381cb0ef41Sopenharmony_ci  type InternalPropertyDescriptor extends object
12391cb0ef41Sopenharmony_ci    properties
12401cb0ef41Sopenharmony_ci      # Conventional property name.
12411cb0ef41Sopenharmony_ci      string name
12421cb0ef41Sopenharmony_ci      # The value associated with the property.
12431cb0ef41Sopenharmony_ci      optional RemoteObject value
12441cb0ef41Sopenharmony_ci
12451cb0ef41Sopenharmony_ci  # Object private field descriptor.
12461cb0ef41Sopenharmony_ci  experimental type PrivatePropertyDescriptor extends object
12471cb0ef41Sopenharmony_ci    properties
12481cb0ef41Sopenharmony_ci      # Private property name.
12491cb0ef41Sopenharmony_ci      string name
12501cb0ef41Sopenharmony_ci      # The value associated with the private property.
12511cb0ef41Sopenharmony_ci      optional RemoteObject value
12521cb0ef41Sopenharmony_ci      # A function which serves as a getter for the private property,
12531cb0ef41Sopenharmony_ci      # or `undefined` if there is no getter (accessor descriptors only).
12541cb0ef41Sopenharmony_ci      optional RemoteObject get
12551cb0ef41Sopenharmony_ci      # A function which serves as a setter for the private property,
12561cb0ef41Sopenharmony_ci      # or `undefined` if there is no setter (accessor descriptors only).
12571cb0ef41Sopenharmony_ci      optional RemoteObject set
12581cb0ef41Sopenharmony_ci
12591cb0ef41Sopenharmony_ci  # Represents function call argument. Either remote object id `objectId`, primitive `value`,
12601cb0ef41Sopenharmony_ci  # unserializable primitive value or neither of (for undefined) them should be specified.
12611cb0ef41Sopenharmony_ci  type CallArgument extends object
12621cb0ef41Sopenharmony_ci    properties
12631cb0ef41Sopenharmony_ci      # Primitive value or serializable javascript object.
12641cb0ef41Sopenharmony_ci      optional any value
12651cb0ef41Sopenharmony_ci      # Primitive value which can not be JSON-stringified.
12661cb0ef41Sopenharmony_ci      optional UnserializableValue unserializableValue
12671cb0ef41Sopenharmony_ci      # Remote object handle.
12681cb0ef41Sopenharmony_ci      optional RemoteObjectId objectId
12691cb0ef41Sopenharmony_ci
12701cb0ef41Sopenharmony_ci  # Id of an execution context.
12711cb0ef41Sopenharmony_ci  type ExecutionContextId extends integer
12721cb0ef41Sopenharmony_ci
12731cb0ef41Sopenharmony_ci  # Description of an isolated world.
12741cb0ef41Sopenharmony_ci  type ExecutionContextDescription extends object
12751cb0ef41Sopenharmony_ci    properties
12761cb0ef41Sopenharmony_ci      # Unique id of the execution context. It can be used to specify in which execution context
12771cb0ef41Sopenharmony_ci      # script evaluation should be performed.
12781cb0ef41Sopenharmony_ci      ExecutionContextId id
12791cb0ef41Sopenharmony_ci      # Execution context origin.
12801cb0ef41Sopenharmony_ci      string origin
12811cb0ef41Sopenharmony_ci      # Human readable name describing given context.
12821cb0ef41Sopenharmony_ci      string name
12831cb0ef41Sopenharmony_ci      # A system-unique execution context identifier. Unlike the id, this is unique across
12841cb0ef41Sopenharmony_ci      # multiple processes, so can be reliably used to identify specific context while backend
12851cb0ef41Sopenharmony_ci      # performs a cross-process navigation.
12861cb0ef41Sopenharmony_ci      experimental string uniqueId
12871cb0ef41Sopenharmony_ci      # Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
12881cb0ef41Sopenharmony_ci      optional object auxData
12891cb0ef41Sopenharmony_ci
12901cb0ef41Sopenharmony_ci  # Detailed information about exception (or error) that was thrown during script compilation or
12911cb0ef41Sopenharmony_ci  # execution.
12921cb0ef41Sopenharmony_ci  type ExceptionDetails extends object
12931cb0ef41Sopenharmony_ci    properties
12941cb0ef41Sopenharmony_ci      # Exception id.
12951cb0ef41Sopenharmony_ci      integer exceptionId
12961cb0ef41Sopenharmony_ci      # Exception text, which should be used together with exception object when available.
12971cb0ef41Sopenharmony_ci      string text
12981cb0ef41Sopenharmony_ci      # Line number of the exception location (0-based).
12991cb0ef41Sopenharmony_ci      integer lineNumber
13001cb0ef41Sopenharmony_ci      # Column number of the exception location (0-based).
13011cb0ef41Sopenharmony_ci      integer columnNumber
13021cb0ef41Sopenharmony_ci      # Script ID of the exception location.
13031cb0ef41Sopenharmony_ci      optional ScriptId scriptId
13041cb0ef41Sopenharmony_ci      # URL of the exception location, to be used when the script was not reported.
13051cb0ef41Sopenharmony_ci      optional string url
13061cb0ef41Sopenharmony_ci      # JavaScript stack trace if available.
13071cb0ef41Sopenharmony_ci      optional StackTrace stackTrace
13081cb0ef41Sopenharmony_ci      # Exception object if available.
13091cb0ef41Sopenharmony_ci      optional RemoteObject exception
13101cb0ef41Sopenharmony_ci      # Identifier of the context where exception happened.
13111cb0ef41Sopenharmony_ci      optional ExecutionContextId executionContextId
13121cb0ef41Sopenharmony_ci      # Dictionary with entries of meta data that the client associated
13131cb0ef41Sopenharmony_ci      # with this exception, such as information about associated network
13141cb0ef41Sopenharmony_ci      # requests, etc.
13151cb0ef41Sopenharmony_ci      experimental optional object exceptionMetaData
13161cb0ef41Sopenharmony_ci
13171cb0ef41Sopenharmony_ci  # Number of milliseconds since epoch.
13181cb0ef41Sopenharmony_ci  type Timestamp extends number
13191cb0ef41Sopenharmony_ci
13201cb0ef41Sopenharmony_ci  # Number of milliseconds.
13211cb0ef41Sopenharmony_ci  type TimeDelta extends number
13221cb0ef41Sopenharmony_ci
13231cb0ef41Sopenharmony_ci  # Stack entry for runtime errors and assertions.
13241cb0ef41Sopenharmony_ci  type CallFrame extends object
13251cb0ef41Sopenharmony_ci    properties
13261cb0ef41Sopenharmony_ci      # JavaScript function name.
13271cb0ef41Sopenharmony_ci      string functionName
13281cb0ef41Sopenharmony_ci      # JavaScript script id.
13291cb0ef41Sopenharmony_ci      ScriptId scriptId
13301cb0ef41Sopenharmony_ci      # JavaScript script name or url.
13311cb0ef41Sopenharmony_ci      string url
13321cb0ef41Sopenharmony_ci      # JavaScript script line number (0-based).
13331cb0ef41Sopenharmony_ci      integer lineNumber
13341cb0ef41Sopenharmony_ci      # JavaScript script column number (0-based).
13351cb0ef41Sopenharmony_ci      integer columnNumber
13361cb0ef41Sopenharmony_ci
13371cb0ef41Sopenharmony_ci  # Call frames for assertions or error messages.
13381cb0ef41Sopenharmony_ci  type StackTrace extends object
13391cb0ef41Sopenharmony_ci    properties
13401cb0ef41Sopenharmony_ci      # String label of this stack trace. For async traces this may be a name of the function that
13411cb0ef41Sopenharmony_ci      # initiated the async call.
13421cb0ef41Sopenharmony_ci      optional string description
13431cb0ef41Sopenharmony_ci      # JavaScript function name.
13441cb0ef41Sopenharmony_ci      array of CallFrame callFrames
13451cb0ef41Sopenharmony_ci      # Asynchronous JavaScript stack trace that preceded this stack, if available.
13461cb0ef41Sopenharmony_ci      optional StackTrace parent
13471cb0ef41Sopenharmony_ci      # Asynchronous JavaScript stack trace that preceded this stack, if available.
13481cb0ef41Sopenharmony_ci      experimental optional StackTraceId parentId
13491cb0ef41Sopenharmony_ci
13501cb0ef41Sopenharmony_ci  # Unique identifier of current debugger.
13511cb0ef41Sopenharmony_ci  experimental type UniqueDebuggerId extends string
13521cb0ef41Sopenharmony_ci
13531cb0ef41Sopenharmony_ci  # If `debuggerId` is set stack trace comes from another debugger and can be resolved there. This
13541cb0ef41Sopenharmony_ci  # allows to track cross-debugger calls. See `Runtime.StackTrace` and `Debugger.paused` for usages.
13551cb0ef41Sopenharmony_ci  experimental type StackTraceId extends object
13561cb0ef41Sopenharmony_ci    properties
13571cb0ef41Sopenharmony_ci      string id
13581cb0ef41Sopenharmony_ci      optional UniqueDebuggerId debuggerId
13591cb0ef41Sopenharmony_ci
13601cb0ef41Sopenharmony_ci  # Add handler to promise with given promise object id.
13611cb0ef41Sopenharmony_ci  command awaitPromise
13621cb0ef41Sopenharmony_ci    parameters
13631cb0ef41Sopenharmony_ci      # Identifier of the promise.
13641cb0ef41Sopenharmony_ci      RemoteObjectId promiseObjectId
13651cb0ef41Sopenharmony_ci      # Whether the result is expected to be a JSON object that should be sent by value.
13661cb0ef41Sopenharmony_ci      optional boolean returnByValue
13671cb0ef41Sopenharmony_ci      # Whether preview should be generated for the result.
13681cb0ef41Sopenharmony_ci      optional boolean generatePreview
13691cb0ef41Sopenharmony_ci    returns
13701cb0ef41Sopenharmony_ci      # Promise result. Will contain rejected value if promise was rejected.
13711cb0ef41Sopenharmony_ci      RemoteObject result
13721cb0ef41Sopenharmony_ci      # Exception details if stack strace is available.
13731cb0ef41Sopenharmony_ci      optional ExceptionDetails exceptionDetails
13741cb0ef41Sopenharmony_ci
13751cb0ef41Sopenharmony_ci  # Calls function with given declaration on the given object. Object group of the result is
13761cb0ef41Sopenharmony_ci  # inherited from the target object.
13771cb0ef41Sopenharmony_ci  command callFunctionOn
13781cb0ef41Sopenharmony_ci    parameters
13791cb0ef41Sopenharmony_ci      # Declaration of the function to call.
13801cb0ef41Sopenharmony_ci      string functionDeclaration
13811cb0ef41Sopenharmony_ci      # Identifier of the object to call function on. Either objectId or executionContextId should
13821cb0ef41Sopenharmony_ci      # be specified.
13831cb0ef41Sopenharmony_ci      optional RemoteObjectId objectId
13841cb0ef41Sopenharmony_ci      # Call arguments. All call arguments must belong to the same JavaScript world as the target
13851cb0ef41Sopenharmony_ci      # object.
13861cb0ef41Sopenharmony_ci      optional array of CallArgument arguments
13871cb0ef41Sopenharmony_ci      # In silent mode exceptions thrown during evaluation are not reported and do not pause
13881cb0ef41Sopenharmony_ci      # execution. Overrides `setPauseOnException` state.
13891cb0ef41Sopenharmony_ci      optional boolean silent
13901cb0ef41Sopenharmony_ci      # Whether the result is expected to be a JSON object which should be sent by value.
13911cb0ef41Sopenharmony_ci      optional boolean returnByValue
13921cb0ef41Sopenharmony_ci      # Whether preview should be generated for the result.
13931cb0ef41Sopenharmony_ci      experimental optional boolean generatePreview
13941cb0ef41Sopenharmony_ci      # Whether execution should be treated as initiated by user in the UI.
13951cb0ef41Sopenharmony_ci      optional boolean userGesture
13961cb0ef41Sopenharmony_ci      # Whether execution should `await` for resulting value and return once awaited promise is
13971cb0ef41Sopenharmony_ci      # resolved.
13981cb0ef41Sopenharmony_ci      optional boolean awaitPromise
13991cb0ef41Sopenharmony_ci      # Specifies execution context which global object will be used to call function on. Either
14001cb0ef41Sopenharmony_ci      # executionContextId or objectId should be specified.
14011cb0ef41Sopenharmony_ci      optional ExecutionContextId executionContextId
14021cb0ef41Sopenharmony_ci      # Symbolic group name that can be used to release multiple objects. If objectGroup is not
14031cb0ef41Sopenharmony_ci      # specified and objectId is, objectGroup will be inherited from object.
14041cb0ef41Sopenharmony_ci      optional string objectGroup
14051cb0ef41Sopenharmony_ci      # Whether to throw an exception if side effect cannot be ruled out during evaluation.
14061cb0ef41Sopenharmony_ci      experimental optional boolean throwOnSideEffect
14071cb0ef41Sopenharmony_ci      # An alternative way to specify the execution context to call function on.
14081cb0ef41Sopenharmony_ci      # Compared to contextId that may be reused across processes, this is guaranteed to be
14091cb0ef41Sopenharmony_ci      # system-unique, so it can be used to prevent accidental function call
14101cb0ef41Sopenharmony_ci      # in context different than intended (e.g. as a result of navigation across process
14111cb0ef41Sopenharmony_ci      # boundaries).
14121cb0ef41Sopenharmony_ci      # This is mutually exclusive with `executionContextId`.
14131cb0ef41Sopenharmony_ci      experimental optional string uniqueContextId
14141cb0ef41Sopenharmony_ci      # Whether the result should contain `webDriverValue`, serialized according to
14151cb0ef41Sopenharmony_ci      # https://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but
14161cb0ef41Sopenharmony_ci      # resulting `objectId` is still provided.
14171cb0ef41Sopenharmony_ci      experimental optional boolean generateWebDriverValue
14181cb0ef41Sopenharmony_ci    returns
14191cb0ef41Sopenharmony_ci      # Call result.
14201cb0ef41Sopenharmony_ci      RemoteObject result
14211cb0ef41Sopenharmony_ci      # Exception details.
14221cb0ef41Sopenharmony_ci      optional ExceptionDetails exceptionDetails
14231cb0ef41Sopenharmony_ci
14241cb0ef41Sopenharmony_ci  # Compiles expression.
14251cb0ef41Sopenharmony_ci  command compileScript
14261cb0ef41Sopenharmony_ci    parameters
14271cb0ef41Sopenharmony_ci      # Expression to compile.
14281cb0ef41Sopenharmony_ci      string expression
14291cb0ef41Sopenharmony_ci      # Source url to be set for the script.
14301cb0ef41Sopenharmony_ci      string sourceURL
14311cb0ef41Sopenharmony_ci      # Specifies whether the compiled script should be persisted.
14321cb0ef41Sopenharmony_ci      boolean persistScript
14331cb0ef41Sopenharmony_ci      # Specifies in which execution context to perform script run. If the parameter is omitted the
14341cb0ef41Sopenharmony_ci      # evaluation will be performed in the context of the inspected page.
14351cb0ef41Sopenharmony_ci      optional ExecutionContextId executionContextId
14361cb0ef41Sopenharmony_ci    returns
14371cb0ef41Sopenharmony_ci      # Id of the script.
14381cb0ef41Sopenharmony_ci      optional ScriptId scriptId
14391cb0ef41Sopenharmony_ci      # Exception details.
14401cb0ef41Sopenharmony_ci      optional ExceptionDetails exceptionDetails
14411cb0ef41Sopenharmony_ci
14421cb0ef41Sopenharmony_ci  # Disables reporting of execution contexts creation.
14431cb0ef41Sopenharmony_ci  command disable
14441cb0ef41Sopenharmony_ci
14451cb0ef41Sopenharmony_ci  # Discards collected exceptions and console API calls.
14461cb0ef41Sopenharmony_ci  command discardConsoleEntries
14471cb0ef41Sopenharmony_ci
14481cb0ef41Sopenharmony_ci  # Enables reporting of execution contexts creation by means of `executionContextCreated` event.
14491cb0ef41Sopenharmony_ci  # When the reporting gets enabled the event will be sent immediately for each existing execution
14501cb0ef41Sopenharmony_ci  # context.
14511cb0ef41Sopenharmony_ci  command enable
14521cb0ef41Sopenharmony_ci
14531cb0ef41Sopenharmony_ci  # Evaluates expression on global object.
14541cb0ef41Sopenharmony_ci  command evaluate
14551cb0ef41Sopenharmony_ci    parameters
14561cb0ef41Sopenharmony_ci      # Expression to evaluate.
14571cb0ef41Sopenharmony_ci      string expression
14581cb0ef41Sopenharmony_ci      # Symbolic group name that can be used to release multiple objects.
14591cb0ef41Sopenharmony_ci      optional string objectGroup
14601cb0ef41Sopenharmony_ci      # Determines whether Command Line API should be available during the evaluation.
14611cb0ef41Sopenharmony_ci      optional boolean includeCommandLineAPI
14621cb0ef41Sopenharmony_ci      # In silent mode exceptions thrown during evaluation are not reported and do not pause
14631cb0ef41Sopenharmony_ci      # execution. Overrides `setPauseOnException` state.
14641cb0ef41Sopenharmony_ci      optional boolean silent
14651cb0ef41Sopenharmony_ci      # Specifies in which execution context to perform evaluation. If the parameter is omitted the
14661cb0ef41Sopenharmony_ci      # evaluation will be performed in the context of the inspected page.
14671cb0ef41Sopenharmony_ci      # This is mutually exclusive with `uniqueContextId`, which offers an
14681cb0ef41Sopenharmony_ci      # alternative way to identify the execution context that is more reliable
14691cb0ef41Sopenharmony_ci      # in a multi-process environment.
14701cb0ef41Sopenharmony_ci      optional ExecutionContextId contextId
14711cb0ef41Sopenharmony_ci      # Whether the result is expected to be a JSON object that should be sent by value.
14721cb0ef41Sopenharmony_ci      optional boolean returnByValue
14731cb0ef41Sopenharmony_ci      # Whether preview should be generated for the result.
14741cb0ef41Sopenharmony_ci      experimental optional boolean generatePreview
14751cb0ef41Sopenharmony_ci      # Whether execution should be treated as initiated by user in the UI.
14761cb0ef41Sopenharmony_ci      optional boolean userGesture
14771cb0ef41Sopenharmony_ci      # Whether execution should `await` for resulting value and return once awaited promise is
14781cb0ef41Sopenharmony_ci      # resolved.
14791cb0ef41Sopenharmony_ci      optional boolean awaitPromise
14801cb0ef41Sopenharmony_ci      # Whether to throw an exception if side effect cannot be ruled out during evaluation.
14811cb0ef41Sopenharmony_ci      # This implies `disableBreaks` below.
14821cb0ef41Sopenharmony_ci      experimental optional boolean throwOnSideEffect
14831cb0ef41Sopenharmony_ci      # Terminate execution after timing out (number of milliseconds).
14841cb0ef41Sopenharmony_ci      experimental optional TimeDelta timeout
14851cb0ef41Sopenharmony_ci      # Disable breakpoints during execution.
14861cb0ef41Sopenharmony_ci      experimental optional boolean disableBreaks
14871cb0ef41Sopenharmony_ci      # Setting this flag to true enables `let` re-declaration and top-level `await`.
14881cb0ef41Sopenharmony_ci      # Note that `let` variables can only be re-declared if they originate from
14891cb0ef41Sopenharmony_ci      # `replMode` themselves.
14901cb0ef41Sopenharmony_ci      experimental optional boolean replMode
14911cb0ef41Sopenharmony_ci      # The Content Security Policy (CSP) for the target might block 'unsafe-eval'
14921cb0ef41Sopenharmony_ci      # which includes eval(), Function(), setTimeout() and setInterval()
14931cb0ef41Sopenharmony_ci      # when called with non-callable arguments. This flag bypasses CSP for this
14941cb0ef41Sopenharmony_ci      # evaluation and allows unsafe-eval. Defaults to true.
14951cb0ef41Sopenharmony_ci      experimental optional boolean allowUnsafeEvalBlockedByCSP
14961cb0ef41Sopenharmony_ci      # An alternative way to specify the execution context to evaluate in.
14971cb0ef41Sopenharmony_ci      # Compared to contextId that may be reused across processes, this is guaranteed to be
14981cb0ef41Sopenharmony_ci      # system-unique, so it can be used to prevent accidental evaluation of the expression
14991cb0ef41Sopenharmony_ci      # in context different than intended (e.g. as a result of navigation across process
15001cb0ef41Sopenharmony_ci      # boundaries).
15011cb0ef41Sopenharmony_ci      # This is mutually exclusive with `contextId`.
15021cb0ef41Sopenharmony_ci      experimental optional string uniqueContextId
15031cb0ef41Sopenharmony_ci      # Whether the result should be serialized according to https://w3c.github.io/webdriver-bidi.
15041cb0ef41Sopenharmony_ci      experimental optional boolean generateWebDriverValue
15051cb0ef41Sopenharmony_ci    returns
15061cb0ef41Sopenharmony_ci      # Evaluation result.
15071cb0ef41Sopenharmony_ci      RemoteObject result
15081cb0ef41Sopenharmony_ci      # Exception details.
15091cb0ef41Sopenharmony_ci      optional ExceptionDetails exceptionDetails
15101cb0ef41Sopenharmony_ci
15111cb0ef41Sopenharmony_ci  # Returns the isolate id.
15121cb0ef41Sopenharmony_ci  experimental command getIsolateId
15131cb0ef41Sopenharmony_ci    returns
15141cb0ef41Sopenharmony_ci      # The isolate id.
15151cb0ef41Sopenharmony_ci      string id
15161cb0ef41Sopenharmony_ci
15171cb0ef41Sopenharmony_ci  # Returns the JavaScript heap usage.
15181cb0ef41Sopenharmony_ci  # It is the total usage of the corresponding isolate not scoped to a particular Runtime.
15191cb0ef41Sopenharmony_ci  experimental command getHeapUsage
15201cb0ef41Sopenharmony_ci    returns
15211cb0ef41Sopenharmony_ci      # Used heap size in bytes.
15221cb0ef41Sopenharmony_ci      number usedSize
15231cb0ef41Sopenharmony_ci      # Allocated heap size in bytes.
15241cb0ef41Sopenharmony_ci      number totalSize
15251cb0ef41Sopenharmony_ci
15261cb0ef41Sopenharmony_ci  # Returns properties of a given object. Object group of the result is inherited from the target
15271cb0ef41Sopenharmony_ci  # object.
15281cb0ef41Sopenharmony_ci  command getProperties
15291cb0ef41Sopenharmony_ci    parameters
15301cb0ef41Sopenharmony_ci      # Identifier of the object to return properties for.
15311cb0ef41Sopenharmony_ci      RemoteObjectId objectId
15321cb0ef41Sopenharmony_ci      # If true, returns properties belonging only to the element itself, not to its prototype
15331cb0ef41Sopenharmony_ci      # chain.
15341cb0ef41Sopenharmony_ci      optional boolean ownProperties
15351cb0ef41Sopenharmony_ci      # If true, returns accessor properties (with getter/setter) only; internal properties are not
15361cb0ef41Sopenharmony_ci      # returned either.
15371cb0ef41Sopenharmony_ci      experimental optional boolean accessorPropertiesOnly
15381cb0ef41Sopenharmony_ci      # Whether preview should be generated for the results.
15391cb0ef41Sopenharmony_ci      experimental optional boolean generatePreview
15401cb0ef41Sopenharmony_ci      # If true, returns non-indexed properties only.
15411cb0ef41Sopenharmony_ci      experimental optional boolean nonIndexedPropertiesOnly
15421cb0ef41Sopenharmony_ci    returns
15431cb0ef41Sopenharmony_ci      # Object properties.
15441cb0ef41Sopenharmony_ci      array of PropertyDescriptor result
15451cb0ef41Sopenharmony_ci      # Internal object properties (only of the element itself).
15461cb0ef41Sopenharmony_ci      optional array of InternalPropertyDescriptor internalProperties
15471cb0ef41Sopenharmony_ci      # Object private properties.
15481cb0ef41Sopenharmony_ci      experimental optional array of PrivatePropertyDescriptor privateProperties
15491cb0ef41Sopenharmony_ci      # Exception details.
15501cb0ef41Sopenharmony_ci      optional ExceptionDetails exceptionDetails
15511cb0ef41Sopenharmony_ci
15521cb0ef41Sopenharmony_ci  # Returns all let, const and class variables from global scope.
15531cb0ef41Sopenharmony_ci  command globalLexicalScopeNames
15541cb0ef41Sopenharmony_ci    parameters
15551cb0ef41Sopenharmony_ci      # Specifies in which execution context to lookup global scope variables.
15561cb0ef41Sopenharmony_ci      optional ExecutionContextId executionContextId
15571cb0ef41Sopenharmony_ci    returns
15581cb0ef41Sopenharmony_ci      array of string names
15591cb0ef41Sopenharmony_ci
15601cb0ef41Sopenharmony_ci  command queryObjects
15611cb0ef41Sopenharmony_ci    parameters
15621cb0ef41Sopenharmony_ci      # Identifier of the prototype to return objects for.
15631cb0ef41Sopenharmony_ci      RemoteObjectId prototypeObjectId
15641cb0ef41Sopenharmony_ci      # Symbolic group name that can be used to release the results.
15651cb0ef41Sopenharmony_ci      optional string objectGroup
15661cb0ef41Sopenharmony_ci    returns
15671cb0ef41Sopenharmony_ci      # Array with objects.
15681cb0ef41Sopenharmony_ci      RemoteObject objects
15691cb0ef41Sopenharmony_ci
15701cb0ef41Sopenharmony_ci  # Releases remote object with given id.
15711cb0ef41Sopenharmony_ci  command releaseObject
15721cb0ef41Sopenharmony_ci    parameters
15731cb0ef41Sopenharmony_ci      # Identifier of the object to release.
15741cb0ef41Sopenharmony_ci      RemoteObjectId objectId
15751cb0ef41Sopenharmony_ci
15761cb0ef41Sopenharmony_ci  # Releases all remote objects that belong to a given group.
15771cb0ef41Sopenharmony_ci  command releaseObjectGroup
15781cb0ef41Sopenharmony_ci    parameters
15791cb0ef41Sopenharmony_ci      # Symbolic object group name.
15801cb0ef41Sopenharmony_ci      string objectGroup
15811cb0ef41Sopenharmony_ci
15821cb0ef41Sopenharmony_ci  # Tells inspected instance to run if it was waiting for debugger to attach.
15831cb0ef41Sopenharmony_ci  command runIfWaitingForDebugger
15841cb0ef41Sopenharmony_ci
15851cb0ef41Sopenharmony_ci  # Runs script with given id in a given context.
15861cb0ef41Sopenharmony_ci  command runScript
15871cb0ef41Sopenharmony_ci    parameters
15881cb0ef41Sopenharmony_ci      # Id of the script to run.
15891cb0ef41Sopenharmony_ci      ScriptId scriptId
15901cb0ef41Sopenharmony_ci      # Specifies in which execution context to perform script run. If the parameter is omitted the
15911cb0ef41Sopenharmony_ci      # evaluation will be performed in the context of the inspected page.
15921cb0ef41Sopenharmony_ci      optional ExecutionContextId executionContextId
15931cb0ef41Sopenharmony_ci      # Symbolic group name that can be used to release multiple objects.
15941cb0ef41Sopenharmony_ci      optional string objectGroup
15951cb0ef41Sopenharmony_ci      # In silent mode exceptions thrown during evaluation are not reported and do not pause
15961cb0ef41Sopenharmony_ci      # execution. Overrides `setPauseOnException` state.
15971cb0ef41Sopenharmony_ci      optional boolean silent
15981cb0ef41Sopenharmony_ci      # Determines whether Command Line API should be available during the evaluation.
15991cb0ef41Sopenharmony_ci      optional boolean includeCommandLineAPI
16001cb0ef41Sopenharmony_ci      # Whether the result is expected to be a JSON object which should be sent by value.
16011cb0ef41Sopenharmony_ci      optional boolean returnByValue
16021cb0ef41Sopenharmony_ci      # Whether preview should be generated for the result.
16031cb0ef41Sopenharmony_ci      optional boolean generatePreview
16041cb0ef41Sopenharmony_ci      # Whether execution should `await` for resulting value and return once awaited promise is
16051cb0ef41Sopenharmony_ci      # resolved.
16061cb0ef41Sopenharmony_ci      optional boolean awaitPromise
16071cb0ef41Sopenharmony_ci    returns
16081cb0ef41Sopenharmony_ci      # Run result.
16091cb0ef41Sopenharmony_ci      RemoteObject result
16101cb0ef41Sopenharmony_ci      # Exception details.
16111cb0ef41Sopenharmony_ci      optional ExceptionDetails exceptionDetails
16121cb0ef41Sopenharmony_ci
16131cb0ef41Sopenharmony_ci  # Enables or disables async call stacks tracking.
16141cb0ef41Sopenharmony_ci  command setAsyncCallStackDepth
16151cb0ef41Sopenharmony_ci    redirect Debugger
16161cb0ef41Sopenharmony_ci    parameters
16171cb0ef41Sopenharmony_ci      # Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async
16181cb0ef41Sopenharmony_ci      # call stacks (default).
16191cb0ef41Sopenharmony_ci      integer maxDepth
16201cb0ef41Sopenharmony_ci
16211cb0ef41Sopenharmony_ci  experimental command setCustomObjectFormatterEnabled
16221cb0ef41Sopenharmony_ci    parameters
16231cb0ef41Sopenharmony_ci      boolean enabled
16241cb0ef41Sopenharmony_ci
16251cb0ef41Sopenharmony_ci  experimental command setMaxCallStackSizeToCapture
16261cb0ef41Sopenharmony_ci    parameters
16271cb0ef41Sopenharmony_ci      integer size
16281cb0ef41Sopenharmony_ci
16291cb0ef41Sopenharmony_ci  # Terminate current or next JavaScript execution.
16301cb0ef41Sopenharmony_ci  # Will cancel the termination when the outer-most script execution ends.
16311cb0ef41Sopenharmony_ci  experimental command terminateExecution
16321cb0ef41Sopenharmony_ci
16331cb0ef41Sopenharmony_ci  # If executionContextId is empty, adds binding with the given name on the
16341cb0ef41Sopenharmony_ci  # global objects of all inspected contexts, including those created later,
16351cb0ef41Sopenharmony_ci  # bindings survive reloads.
16361cb0ef41Sopenharmony_ci  # Binding function takes exactly one argument, this argument should be string,
16371cb0ef41Sopenharmony_ci  # in case of any other input, function throws an exception.
16381cb0ef41Sopenharmony_ci  # Each binding function call produces Runtime.bindingCalled notification.
16391cb0ef41Sopenharmony_ci  experimental command addBinding
16401cb0ef41Sopenharmony_ci    parameters
16411cb0ef41Sopenharmony_ci      string name
16421cb0ef41Sopenharmony_ci      # If specified, the binding would only be exposed to the specified
16431cb0ef41Sopenharmony_ci      # execution context. If omitted and `executionContextName` is not set,
16441cb0ef41Sopenharmony_ci      # the binding is exposed to all execution contexts of the target.
16451cb0ef41Sopenharmony_ci      # This parameter is mutually exclusive with `executionContextName`.
16461cb0ef41Sopenharmony_ci      # Deprecated in favor of `executionContextName` due to an unclear use case
16471cb0ef41Sopenharmony_ci      # and bugs in implementation (crbug.com/1169639). `executionContextId` will be
16481cb0ef41Sopenharmony_ci      # removed in the future.
16491cb0ef41Sopenharmony_ci      deprecated optional ExecutionContextId executionContextId
16501cb0ef41Sopenharmony_ci      # If specified, the binding is exposed to the executionContext with
16511cb0ef41Sopenharmony_ci      # matching name, even for contexts created after the binding is added.
16521cb0ef41Sopenharmony_ci      # See also `ExecutionContext.name` and `worldName` parameter to
16531cb0ef41Sopenharmony_ci      # `Page.addScriptToEvaluateOnNewDocument`.
16541cb0ef41Sopenharmony_ci      # This parameter is mutually exclusive with `executionContextId`.
16551cb0ef41Sopenharmony_ci      experimental optional string executionContextName
16561cb0ef41Sopenharmony_ci
16571cb0ef41Sopenharmony_ci  # This method does not remove binding function from global object but
16581cb0ef41Sopenharmony_ci  # unsubscribes current runtime agent from Runtime.bindingCalled notifications.
16591cb0ef41Sopenharmony_ci  experimental command removeBinding
16601cb0ef41Sopenharmony_ci    parameters
16611cb0ef41Sopenharmony_ci      string name
16621cb0ef41Sopenharmony_ci
16631cb0ef41Sopenharmony_ci  # This method tries to lookup and populate exception details for a
16641cb0ef41Sopenharmony_ci  # JavaScript Error object.
16651cb0ef41Sopenharmony_ci  # Note that the stackTrace portion of the resulting exceptionDetails will
16661cb0ef41Sopenharmony_ci  # only be populated if the Runtime domain was enabled at the time when the
16671cb0ef41Sopenharmony_ci  # Error was thrown.
16681cb0ef41Sopenharmony_ci  experimental command getExceptionDetails
16691cb0ef41Sopenharmony_ci    parameters
16701cb0ef41Sopenharmony_ci      # The error object for which to resolve the exception details.
16711cb0ef41Sopenharmony_ci      RemoteObjectId errorObjectId
16721cb0ef41Sopenharmony_ci    returns
16731cb0ef41Sopenharmony_ci      optional ExceptionDetails exceptionDetails
16741cb0ef41Sopenharmony_ci
16751cb0ef41Sopenharmony_ci  # Notification is issued every time when binding is called.
16761cb0ef41Sopenharmony_ci  experimental event bindingCalled
16771cb0ef41Sopenharmony_ci    parameters
16781cb0ef41Sopenharmony_ci      string name
16791cb0ef41Sopenharmony_ci      string payload
16801cb0ef41Sopenharmony_ci      # Identifier of the context where the call was made.
16811cb0ef41Sopenharmony_ci      ExecutionContextId executionContextId
16821cb0ef41Sopenharmony_ci
16831cb0ef41Sopenharmony_ci  # Issued when console API was called.
16841cb0ef41Sopenharmony_ci  event consoleAPICalled
16851cb0ef41Sopenharmony_ci    parameters
16861cb0ef41Sopenharmony_ci      # Type of the call.
16871cb0ef41Sopenharmony_ci      enum type
16881cb0ef41Sopenharmony_ci        log
16891cb0ef41Sopenharmony_ci        debug
16901cb0ef41Sopenharmony_ci        info
16911cb0ef41Sopenharmony_ci        error
16921cb0ef41Sopenharmony_ci        warning
16931cb0ef41Sopenharmony_ci        dir
16941cb0ef41Sopenharmony_ci        dirxml
16951cb0ef41Sopenharmony_ci        table
16961cb0ef41Sopenharmony_ci        trace
16971cb0ef41Sopenharmony_ci        clear
16981cb0ef41Sopenharmony_ci        startGroup
16991cb0ef41Sopenharmony_ci        startGroupCollapsed
17001cb0ef41Sopenharmony_ci        endGroup
17011cb0ef41Sopenharmony_ci        assert
17021cb0ef41Sopenharmony_ci        profile
17031cb0ef41Sopenharmony_ci        profileEnd
17041cb0ef41Sopenharmony_ci        count
17051cb0ef41Sopenharmony_ci        timeEnd
17061cb0ef41Sopenharmony_ci      # Call arguments.
17071cb0ef41Sopenharmony_ci      array of RemoteObject args
17081cb0ef41Sopenharmony_ci      # Identifier of the context where the call was made.
17091cb0ef41Sopenharmony_ci      ExecutionContextId executionContextId
17101cb0ef41Sopenharmony_ci      # Call timestamp.
17111cb0ef41Sopenharmony_ci      Timestamp timestamp
17121cb0ef41Sopenharmony_ci      # Stack trace captured when the call was made. The async stack chain is automatically reported for
17131cb0ef41Sopenharmony_ci      # the following call types: `assert`, `error`, `trace`, `warning`. For other types the async call
17141cb0ef41Sopenharmony_ci      # chain can be retrieved using `Debugger.getStackTrace` and `stackTrace.parentId` field.
17151cb0ef41Sopenharmony_ci      optional StackTrace stackTrace
17161cb0ef41Sopenharmony_ci      # Console context descriptor for calls on non-default console context (not console.*):
17171cb0ef41Sopenharmony_ci      # 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call
17181cb0ef41Sopenharmony_ci      # on named context.
17191cb0ef41Sopenharmony_ci      experimental optional string context
17201cb0ef41Sopenharmony_ci
17211cb0ef41Sopenharmony_ci  # Issued when unhandled exception was revoked.
17221cb0ef41Sopenharmony_ci  event exceptionRevoked
17231cb0ef41Sopenharmony_ci    parameters
17241cb0ef41Sopenharmony_ci      # Reason describing why exception was revoked.
17251cb0ef41Sopenharmony_ci      string reason
17261cb0ef41Sopenharmony_ci      # The id of revoked exception, as reported in `exceptionThrown`.
17271cb0ef41Sopenharmony_ci      integer exceptionId
17281cb0ef41Sopenharmony_ci
17291cb0ef41Sopenharmony_ci  # Issued when exception was thrown and unhandled.
17301cb0ef41Sopenharmony_ci  event exceptionThrown
17311cb0ef41Sopenharmony_ci    parameters
17321cb0ef41Sopenharmony_ci      # Timestamp of the exception.
17331cb0ef41Sopenharmony_ci      Timestamp timestamp
17341cb0ef41Sopenharmony_ci      ExceptionDetails exceptionDetails
17351cb0ef41Sopenharmony_ci
17361cb0ef41Sopenharmony_ci  # Issued when new execution context is created.
17371cb0ef41Sopenharmony_ci  event executionContextCreated
17381cb0ef41Sopenharmony_ci    parameters
17391cb0ef41Sopenharmony_ci      # A newly created execution context.
17401cb0ef41Sopenharmony_ci      ExecutionContextDescription context
17411cb0ef41Sopenharmony_ci
17421cb0ef41Sopenharmony_ci  # Issued when execution context is destroyed.
17431cb0ef41Sopenharmony_ci  event executionContextDestroyed
17441cb0ef41Sopenharmony_ci    parameters
17451cb0ef41Sopenharmony_ci      # Id of the destroyed context
17461cb0ef41Sopenharmony_ci      deprecated ExecutionContextId executionContextId
17471cb0ef41Sopenharmony_ci      # Unique Id of the destroyed context
17481cb0ef41Sopenharmony_ci      experimental string executionContextUniqueId
17491cb0ef41Sopenharmony_ci
17501cb0ef41Sopenharmony_ci  # Issued when all executionContexts were cleared in browser
17511cb0ef41Sopenharmony_ci  event executionContextsCleared
17521cb0ef41Sopenharmony_ci
17531cb0ef41Sopenharmony_ci  # Issued when object should be inspected (for example, as a result of inspect() command line API
17541cb0ef41Sopenharmony_ci  # call).
17551cb0ef41Sopenharmony_ci  event inspectRequested
17561cb0ef41Sopenharmony_ci    parameters
17571cb0ef41Sopenharmony_ci      RemoteObject object
17581cb0ef41Sopenharmony_ci      object hints
17591cb0ef41Sopenharmony_ci      # Identifier of the context where the call was made.
17601cb0ef41Sopenharmony_ci      experimental optional ExecutionContextId executionContextId
17611cb0ef41Sopenharmony_ci
17621cb0ef41Sopenharmony_ci# This domain is deprecated.
17631cb0ef41Sopenharmony_cideprecated domain Schema
17641cb0ef41Sopenharmony_ci
17651cb0ef41Sopenharmony_ci  # Description of the protocol domain.
17661cb0ef41Sopenharmony_ci  type Domain extends object
17671cb0ef41Sopenharmony_ci    properties
17681cb0ef41Sopenharmony_ci      # Domain name.
17691cb0ef41Sopenharmony_ci      string name
17701cb0ef41Sopenharmony_ci      # Domain version.
17711cb0ef41Sopenharmony_ci      string version
17721cb0ef41Sopenharmony_ci
17731cb0ef41Sopenharmony_ci  # Returns supported domains.
17741cb0ef41Sopenharmony_ci  command getDomains
17751cb0ef41Sopenharmony_ci    returns
17761cb0ef41Sopenharmony_ci      # List of supported domains.
17771cb0ef41Sopenharmony_ci      array of Domain domains
1778