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