Pinsave/counterstrike
1
1// These definitions are automatically generated by the generate-inspector script.2// Do not edit this file directly.3// See scripts/generate-inspector/README.md for information on how to update the protocol definitions.4// Changes to the module itself should be added to the generator template (scripts/generate-inspector/inspector.d.ts.template).5 6/**7 * The `node:inspector` module provides an API for interacting with the V88 * inspector.9 * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/inspector.js)10 */11declare module 'inspector' {12 import EventEmitter = require('node:events');13 14 interface InspectorNotification<T> {15 method: string;16 params: T;17 }18 19 namespace Schema {20 /**21 * Description of the protocol domain.22 */23 interface Domain {24 /**25 * Domain name.26 */27 name: string;28 /**29 * Domain version.30 */31 version: string;32 }33 interface GetDomainsReturnType {34 /**35 * List of supported domains.36 */37 domains: Domain[];38 }39 }40 namespace Runtime {41 /**42 * Unique script identifier.43 */44 type ScriptId = string;45 /**46 * Unique object identifier.47 */48 type RemoteObjectId = string;49 /**50 * Primitive value which cannot be JSON-stringified.51 */52 type UnserializableValue = string;53 /**54 * Mirror object referencing original JavaScript object.55 */56 interface RemoteObject {57 /**58 * Object type.59 */60 type: string;61 /**62 * Object subtype hint. Specified for <code>object</code> type values only.63 */64 subtype?: string | undefined;65 /**66 * Object class (constructor) name. Specified for <code>object</code> type values only.67 */68 className?: string | undefined;69 /**70 * Remote object value in case of primitive values or JSON values (if it was requested).71 */72 value?: any;73 /**74 * Primitive value which can not be JSON-stringified does not have <code>value</code>, but gets this property.75 */76 unserializableValue?: UnserializableValue | undefined;77 /**78 * String representation of the object.79 */80 description?: string | undefined;81 /**82 * Unique object identifier (for non-primitive values).83 */84 objectId?: RemoteObjectId | undefined;85 /**86 * Preview containing abbreviated property values. Specified for <code>object</code> type values only.87 * @experimental88 */89 preview?: ObjectPreview | undefined;90 /**91 * @experimental92 */93 customPreview?: CustomPreview | undefined;94 }95 /**96 * @experimental97 */98 interface CustomPreview {99 header: string;100 hasBody: boolean;101 formatterObjectId: RemoteObjectId;102 bindRemoteObjectFunctionId: RemoteObjectId;103 configObjectId?: RemoteObjectId | undefined;104 }105 /**106 * Object containing abbreviated remote object value.107 * @experimental108 */109 interface ObjectPreview {110 /**111 * Object type.112 */113 type: string;114 /**115 * Object subtype hint. Specified for <code>object</code> type values only.116 */117 subtype?: string | undefined;118 /**119 * String representation of the object.120 */121 description?: string | undefined;122 /**123 * True iff some of the properties or entries of the original object did not fit.124 */125 overflow: boolean;126 /**127 * List of the properties.128 */129 properties: PropertyPreview[];130 /**131 * List of the entries. Specified for <code>map</code> and <code>set</code> subtype values only.132 */133 entries?: EntryPreview[] | undefined;134 }135 /**136 * @experimental137 */138 interface PropertyPreview {139 /**140 * Property name.141 */142 name: string;143 /**144 * Object type. Accessor means that the property itself is an accessor property.145 */146 type: string;147 /**148 * User-friendly property value string.149 */150 value?: string | undefined;151 /**152 * Nested value preview.153 */154 valuePreview?: ObjectPreview | undefined;155 /**156 * Object subtype hint. Specified for <code>object</code> type values only.157 */158 subtype?: string | undefined;159 }160 /**161 * @experimental162 */163 interface EntryPreview {164 /**165 * Preview of the key. Specified for map-like collection entries.166 */167 key?: ObjectPreview | undefined;168 /**169 * Preview of the value.170 */171 value: ObjectPreview;172 }173 /**174 * Object property descriptor.175 */176 interface PropertyDescriptor {177 /**178 * Property name or symbol description.179 */180 name: string;181 /**182 * The value associated with the property.183 */184 value?: RemoteObject | undefined;185 /**186 * True if the value associated with the property may be changed (data descriptors only).187 */188 writable?: boolean | undefined;189 /**190 * A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only).191 */192 get?: RemoteObject | undefined;193 /**194 * A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only).195 */196 set?: RemoteObject | undefined;197 /**198 * True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.199 */200 configurable: boolean;201 /**202 * True if this property shows up during enumeration of the properties on the corresponding object.203 */204 enumerable: boolean;205 /**206 * True if the result was thrown during the evaluation.207 */208 wasThrown?: boolean | undefined;209 /**210 * True if the property is owned for the object.211 */212 isOwn?: boolean | undefined;213 /**214 * Property symbol object, if the property is of the <code>symbol</code> type.215 */216 symbol?: RemoteObject | undefined;217 }218 /**219 * Object internal property descriptor. This property isn't normally visible in JavaScript code.220 */221 interface InternalPropertyDescriptor {222 /**223 * Conventional property name.224 */225 name: string;226 /**227 * The value associated with the property.228 */229 value?: RemoteObject | undefined;230 }231 /**232 * Represents function call argument. Either remote object id <code>objectId</code>, primitive <code>value</code>, unserializable primitive value or neither of (for undefined) them should be specified.233 */234 interface CallArgument {235 /**236 * Primitive value or serializable javascript object.237 */238 value?: any;239 /**240 * Primitive value which can not be JSON-stringified.241 */242 unserializableValue?: UnserializableValue | undefined;243 /**244 * Remote object handle.245 */246 objectId?: RemoteObjectId | undefined;247 }248 /**249 * Id of an execution context.250 */251 type ExecutionContextId = number;252 /**253 * Description of an isolated world.254 */255 interface ExecutionContextDescription {256 /**257 * Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.258 */259 id: ExecutionContextId;260 /**261 * Execution context origin.262 */263 origin: string;264 /**265 * Human readable name describing given context.266 */267 name: string;268 /**269 * Embedder-specific auxiliary data.270 */271 auxData?: {} | undefined;272 }273 /**274 * Detailed information about exception (or error) that was thrown during script compilation or execution.275 */276 interface ExceptionDetails {277 /**278 * Exception id.279 */280 exceptionId: number;281 /**282 * Exception text, which should be used together with exception object when available.283 */284 text: string;285 /**286 * Line number of the exception location (0-based).287 */288 lineNumber: number;289 /**290 * Column number of the exception location (0-based).291 */292 columnNumber: number;293 /**294 * Script ID of the exception location.295 */296 scriptId?: ScriptId | undefined;297 /**298 * URL of the exception location, to be used when the script was not reported.299 */300 url?: string | undefined;301 /**302 * JavaScript stack trace if available.303 */304 stackTrace?: StackTrace | undefined;305 /**306 * Exception object if available.307 */308 exception?: RemoteObject | undefined;309 /**310 * Identifier of the context where exception happened.311 */312 executionContextId?: ExecutionContextId | undefined;313 }314 /**315 * Number of milliseconds since epoch.316 */317 type Timestamp = number;318 /**319 * Stack entry for runtime errors and assertions.320 */321 interface CallFrame {322 /**323 * JavaScript function name.324 */325 functionName: string;326 /**327 * JavaScript script id.328 */329 scriptId: ScriptId;330 /**331 * JavaScript script name or url.332 */333 url: string;334 /**335 * JavaScript script line number (0-based).336 */337 lineNumber: number;338 /**339 * JavaScript script column number (0-based).340 */341 columnNumber: number;342 }343 /**344 * Call frames for assertions or error messages.345 */346 interface StackTrace {347 /**348 * String label of this stack trace. For async traces this may be a name of the function that initiated the async call.349 */350 description?: string | undefined;351 /**352 * JavaScript function name.353 */354 callFrames: CallFrame[];355 /**356 * Asynchronous JavaScript stack trace that preceded this stack, if available.357 */358 parent?: StackTrace | undefined;359 /**360 * Asynchronous JavaScript stack trace that preceded this stack, if available.361 * @experimental362 */363 parentId?: StackTraceId | undefined;364 }365 /**366 * Unique identifier of current debugger.367 * @experimental368 */369 type UniqueDebuggerId = string;370 /**371 * If <code>debuggerId</code> is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See <code>Runtime.StackTrace</code> and <code>Debugger.paused</code> for usages.372 * @experimental373 */374 interface StackTraceId {375 id: string;376 debuggerId?: UniqueDebuggerId | undefined;377 }378 interface EvaluateParameterType {379 /**380 * Expression to evaluate.381 */382 expression: string;383 /**384 * Symbolic group name that can be used to release multiple objects.385 */386 objectGroup?: string | undefined;387 /**388 * Determines whether Command Line API should be available during the evaluation.389 */390 includeCommandLineAPI?: boolean | undefined;391 /**392 * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.393 */394 silent?: boolean | undefined;395 /**396 * Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page.397 */398 contextId?: ExecutionContextId | undefined;399 /**400 * Whether the result is expected to be a JSON object that should be sent by value.401 */402 returnByValue?: boolean | undefined;403 /**404 * Whether preview should be generated for the result.405 * @experimental406 */407 generatePreview?: boolean | undefined;408 /**409 * Whether execution should be treated as initiated by user in the UI.410 */411 userGesture?: boolean | undefined;412 /**413 * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.414 */415 awaitPromise?: boolean | undefined;416 }417 interface AwaitPromiseParameterType {418 /**419 * Identifier of the promise.420 */421 promiseObjectId: RemoteObjectId;422 /**423 * Whether the result is expected to be a JSON object that should be sent by value.424 */425 returnByValue?: boolean | undefined;426 /**427 * Whether preview should be generated for the result.428 */429 generatePreview?: boolean | undefined;430 }431 interface CallFunctionOnParameterType {432 /**433 * Declaration of the function to call.434 */435 functionDeclaration: string;436 /**437 * Identifier of the object to call function on. Either objectId or executionContextId should be specified.438 */439 objectId?: RemoteObjectId | undefined;440 /**441 * Call arguments. All call arguments must belong to the same JavaScript world as the target object.442 */443 arguments?: CallArgument[] | undefined;444 /**445 * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.446 */447 silent?: boolean | undefined;448 /**449 * Whether the result is expected to be a JSON object which should be sent by value.450 */451 returnByValue?: boolean | undefined;452 /**453 * Whether preview should be generated for the result.454 * @experimental455 */456 generatePreview?: boolean | undefined;457 /**458 * Whether execution should be treated as initiated by user in the UI.459 */460 userGesture?: boolean | undefined;461 /**462 * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.463 */464 awaitPromise?: boolean | undefined;465 /**466 * Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.467 */468 executionContextId?: ExecutionContextId | undefined;469 /**470 * Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.471 */472 objectGroup?: string | undefined;473 }474 interface GetPropertiesParameterType {475 /**476 * Identifier of the object to return properties for.477 */478 objectId: RemoteObjectId;479 /**480 * If true, returns properties belonging only to the element itself, not to its prototype chain.481 */482 ownProperties?: boolean | undefined;483 /**484 * If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.485 * @experimental486 */487 accessorPropertiesOnly?: boolean | undefined;488 /**489 * Whether preview should be generated for the results.490 * @experimental491 */492 generatePreview?: boolean | undefined;493 }494 interface ReleaseObjectParameterType {495 /**496 * Identifier of the object to release.497 */498 objectId: RemoteObjectId;499 }500 interface ReleaseObjectGroupParameterType {501 /**502 * Symbolic object group name.503 */504 objectGroup: string;505 }506 interface SetCustomObjectFormatterEnabledParameterType {507 enabled: boolean;508 }509 interface CompileScriptParameterType {510 /**511 * Expression to compile.512 */513 expression: string;514 /**515 * Source url to be set for the script.516 */517 sourceURL: string;518 /**519 * Specifies whether the compiled script should be persisted.520 */521 persistScript: boolean;522 /**523 * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.524 */525 executionContextId?: ExecutionContextId | undefined;526 }527 interface RunScriptParameterType {528 /**529 * Id of the script to run.530 */531 scriptId: ScriptId;532 /**533 * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.534 */535 executionContextId?: ExecutionContextId | undefined;536 /**537 * Symbolic group name that can be used to release multiple objects.538 */539 objectGroup?: string | undefined;540 /**541 * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.542 */543 silent?: boolean | undefined;544 /**545 * Determines whether Command Line API should be available during the evaluation.546 */547 includeCommandLineAPI?: boolean | undefined;548 /**549 * Whether the result is expected to be a JSON object which should be sent by value.550 */551 returnByValue?: boolean | undefined;552 /**553 * Whether preview should be generated for the result.554 */555 generatePreview?: boolean | undefined;556 /**557 * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.558 */559 awaitPromise?: boolean | undefined;560 }561 interface QueryObjectsParameterType {562 /**563 * Identifier of the prototype to return objects for.564 */565 prototypeObjectId: RemoteObjectId;566 }567 interface GlobalLexicalScopeNamesParameterType {568 /**569 * Specifies in which execution context to lookup global scope variables.570 */571 executionContextId?: ExecutionContextId | undefined;572 }573 interface EvaluateReturnType {574 /**575 * Evaluation result.576 */577 result: RemoteObject;578 /**579 * Exception details.580 */581 exceptionDetails?: ExceptionDetails | undefined;582 }583 interface AwaitPromiseReturnType {584 /**585 * Promise result. Will contain rejected value if promise was rejected.586 */587 result: RemoteObject;588 /**589 * Exception details if stack strace is available.590 */591 exceptionDetails?: ExceptionDetails | undefined;592 }593 interface CallFunctionOnReturnType {594 /**595 * Call result.596 */597 result: RemoteObject;598 /**599 * Exception details.600 */601 exceptionDetails?: ExceptionDetails | undefined;602 }603 interface GetPropertiesReturnType {604 /**605 * Object properties.606 */607 result: PropertyDescriptor[];608 /**609 * Internal object properties (only of the element itself).610 */611 internalProperties?: InternalPropertyDescriptor[] | undefined;612 /**613 * Exception details.614 */615 exceptionDetails?: ExceptionDetails | undefined;616 }617 interface CompileScriptReturnType {618 /**619 * Id of the script.620 */621 scriptId?: ScriptId | undefined;622 /**623 * Exception details.624 */625 exceptionDetails?: ExceptionDetails | undefined;626 }627 interface RunScriptReturnType {628 /**629 * Run result.630 */631 result: RemoteObject;632 /**633 * Exception details.634 */635 exceptionDetails?: ExceptionDetails | undefined;636 }637 interface QueryObjectsReturnType {638 /**639 * Array with objects.640 */641 objects: RemoteObject;642 }643 interface GlobalLexicalScopeNamesReturnType {644 names: string[];645 }646 interface ExecutionContextCreatedEventDataType {647 /**648 * A newly created execution context.649 */650 context: ExecutionContextDescription;651 }652 interface ExecutionContextDestroyedEventDataType {653 /**654 * Id of the destroyed context655 */656 executionContextId: ExecutionContextId;657 }658 interface ExceptionThrownEventDataType {659 /**660 * Timestamp of the exception.661 */662 timestamp: Timestamp;663 exceptionDetails: ExceptionDetails;664 }665 interface ExceptionRevokedEventDataType {666 /**667 * Reason describing why exception was revoked.668 */669 reason: string;670 /**671 * The id of revoked exception, as reported in <code>exceptionThrown</code>.672 */673 exceptionId: number;674 }675 interface ConsoleAPICalledEventDataType {676 /**677 * Type of the call.678 */679 type: string;680 /**681 * Call arguments.682 */683 args: RemoteObject[];684 /**685 * Identifier of the context where the call was made.686 */687 executionContextId: ExecutionContextId;688 /**689 * Call timestamp.690 */691 timestamp: Timestamp;692 /**693 * Stack trace captured when the call was made.694 */695 stackTrace?: StackTrace | undefined;696 /**697 * Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.698 * @experimental699 */700 context?: string | undefined;701 }702 interface InspectRequestedEventDataType {703 object: RemoteObject;704 hints: {};705 }706 }707 namespace Debugger {708 /**709 * Breakpoint identifier.710 */711 type BreakpointId = string;712 /**713 * Call frame identifier.714 */715 type CallFrameId = string;716 /**717 * Location in the source code.718 */719 interface Location {720 /**721 * Script identifier as reported in the <code>Debugger.scriptParsed</code>.722 */723 scriptId: Runtime.ScriptId;724 /**725 * Line number in the script (0-based).726 */727 lineNumber: number;728 /**729 * Column number in the script (0-based).730 */731 columnNumber?: number | undefined;732 }733 /**734 * Location in the source code.735 * @experimental736 */737 interface ScriptPosition {738 lineNumber: number;739 columnNumber: number;740 }741 /**742 * JavaScript call frame. Array of call frames form the call stack.743 */744 interface CallFrame {745 /**746 * Call frame identifier. This identifier is only valid while the virtual machine is paused.747 */748 callFrameId: CallFrameId;749 /**750 * Name of the JavaScript function called on this call frame.751 */752 functionName: string;753 /**754 * Location in the source code.755 */756 functionLocation?: Location | undefined;757 /**758 * Location in the source code.759 */760 location: Location;761 /**762 * JavaScript script name or url.763 */764 url: string;765 /**766 * Scope chain for this call frame.767 */768 scopeChain: Scope[];769 /**770 * <code>this</code> object for this call frame.771 */772 this: Runtime.RemoteObject;773 /**774 * The value being returned, if the function is at return point.775 */776 returnValue?: Runtime.RemoteObject | undefined;777 }778 /**779 * Scope description.780 */781 interface Scope {782 /**783 * Scope type.784 */785 type: string;786 /**787 * Object representing the scope. For <code>global</code> and <code>with</code> scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.788 */789 object: Runtime.RemoteObject;790 name?: string | undefined;791 /**792 * Location in the source code where scope starts793 */794 startLocation?: Location | undefined;795 /**796 * Location in the source code where scope ends797 */798 endLocation?: Location | undefined;799 }800 /**801 * Search match for resource.802 */803 interface SearchMatch {804 /**805 * Line number in resource content.806 */807 lineNumber: number;808 /**809 * Line with match content.810 */811 lineContent: string;812 }813 interface BreakLocation {814 /**815 * Script identifier as reported in the <code>Debugger.scriptParsed</code>.816 */817 scriptId: Runtime.ScriptId;818 /**819 * Line number in the script (0-based).820 */821 lineNumber: number;822 /**823 * Column number in the script (0-based).824 */825 columnNumber?: number | undefined;826 type?: string | undefined;827 }828 interface SetBreakpointsActiveParameterType {829 /**830 * New value for breakpoints active state.831 */832 active: boolean;833 }834 interface SetSkipAllPausesParameterType {835 /**836 * New value for skip pauses state.837 */838 skip: boolean;839 }840 interface SetBreakpointByUrlParameterType {841 /**842 * Line number to set breakpoint at.843 */844 lineNumber: number;845 /**846 * URL of the resources to set breakpoint on.847 */848 url?: string | undefined;849 /**850 * Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified.851 */852 urlRegex?: string | undefined;853 /**854 * Script hash of the resources to set breakpoint on.855 */856 scriptHash?: string | undefined;857 /**858 * Offset in the line to set breakpoint at.859 */860 columnNumber?: number | undefined;861 /**862 * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.863 */864 condition?: string | undefined;865 }866 interface SetBreakpointParameterType {867 /**868 * Location to set breakpoint in.869 */870 location: Location;871 /**872 * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.873 */874 condition?: string | undefined;875 }876 interface RemoveBreakpointParameterType {877 breakpointId: BreakpointId;878 }879 interface GetPossibleBreakpointsParameterType {880 /**881 * Start of range to search possible breakpoint locations in.882 */883 start: Location;884 /**885 * End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range.886 */887 end?: Location | undefined;888 /**889 * Only consider locations which are in the same (non-nested) function as start.890 */891 restrictToFunction?: boolean | undefined;892 }893 interface ContinueToLocationParameterType {894 /**895 * Location to continue to.896 */897 location: Location;898 targetCallFrames?: string | undefined;899 }900 interface PauseOnAsyncCallParameterType {901 /**902 * Debugger will pause when async call with given stack trace is started.903 */904 parentStackTraceId: Runtime.StackTraceId;905 }906 interface StepIntoParameterType {907 /**908 * Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause.909 * @experimental910 */911 breakOnAsyncCall?: boolean | undefined;912 }913 interface GetStackTraceParameterType {914 stackTraceId: Runtime.StackTraceId;915 }916 interface SearchInContentParameterType {917 /**918 * Id of the script to search in.919 */920 scriptId: Runtime.ScriptId;921 /**922 * String to search for.923 */924 query: string;925 /**926 * If true, search is case sensitive.927 */928 caseSensitive?: boolean | undefined;929 /**930 * If true, treats string parameter as regex.931 */932 isRegex?: boolean | undefined;933 }934 interface SetScriptSourceParameterType {935 /**936 * Id of the script to edit.937 */938 scriptId: Runtime.ScriptId;939 /**940 * New content of the script.941 */942 scriptSource: string;943 /**944 * If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.945 */946 dryRun?: boolean | undefined;947 }948 interface RestartFrameParameterType {949 /**950 * Call frame identifier to evaluate on.951 */952 callFrameId: CallFrameId;953 }954 interface GetScriptSourceParameterType {955 /**956 * Id of the script to get source for.957 */958 scriptId: Runtime.ScriptId;959 }960 interface SetPauseOnExceptionsParameterType {961 /**962 * Pause on exceptions mode.963 */964 state: string;965 }966 interface EvaluateOnCallFrameParameterType {967 /**968 * Call frame identifier to evaluate on.969 */970 callFrameId: CallFrameId;971 /**972 * Expression to evaluate.973 */974 expression: string;975 /**976 * String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>).977 */978 objectGroup?: string | undefined;979 /**980 * Specifies whether command line API should be available to the evaluated expression, defaults to false.981 */982 includeCommandLineAPI?: boolean | undefined;983 /**984 * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.985 */986 silent?: boolean | undefined;987 /**988 * Whether the result is expected to be a JSON object that should be sent by value.989 */990 returnByValue?: boolean | undefined;991 /**992 * Whether preview should be generated for the result.993 * @experimental994 */995 generatePreview?: boolean | undefined;996 /**997 * Whether to throw an exception if side effect cannot be ruled out during evaluation.998 */999 throwOnSideEffect?: boolean | undefined;1000 }1001 interface SetVariableValueParameterType {1002 /**1003 * 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually.1004 */1005 scopeNumber: number;1006 /**1007 * Variable name.1008 */1009 variableName: string;1010 /**1011 * New variable value.1012 */1013 newValue: Runtime.CallArgument;1014 /**1015 * Id of callframe that holds variable.1016 */1017 callFrameId: CallFrameId;1018 }1019 interface SetReturnValueParameterType {1020 /**1021 * New return value.1022 */1023 newValue: Runtime.CallArgument;1024 }1025 interface SetAsyncCallStackDepthParameterType {1026 /**1027 * Maximum depth of async call stacks. Setting to <code>0</code> will effectively disable collecting async call stacks (default).1028 */1029 maxDepth: number;1030 }1031 interface SetBlackboxPatternsParameterType {1032 /**1033 * Array of regexps that will be used to check script url for blackbox state.1034 */1035 patterns: string[];1036 }1037 interface SetBlackboxedRangesParameterType {1038 /**1039 * Id of the script.1040 */1041 scriptId: Runtime.ScriptId;1042 positions: ScriptPosition[];1043 }1044 interface EnableReturnType {1045 /**1046 * Unique identifier of the debugger.1047 * @experimental1048 */1049 debuggerId: Runtime.UniqueDebuggerId;1050 }1051 interface SetBreakpointByUrlReturnType {1052 /**1053 * Id of the created breakpoint for further reference.1054 */1055 breakpointId: BreakpointId;1056 /**1057 * List of the locations this breakpoint resolved into upon addition.1058 */1059 locations: Location[];1060 }1061 interface SetBreakpointReturnType {1062 /**1063 * Id of the created breakpoint for further reference.1064 */1065 breakpointId: BreakpointId;1066 /**1067 * Location this breakpoint resolved into.1068 */1069 actualLocation: Location;1070 }1071 interface GetPossibleBreakpointsReturnType {1072 /**1073 * List of the possible breakpoint locations.1074 */1075 locations: BreakLocation[];1076 }1077 interface GetStackTraceReturnType {1078 stackTrace: Runtime.StackTrace;1079 }1080 interface SearchInContentReturnType {1081 /**1082 * List of search matches.1083 */1084 result: SearchMatch[];1085 }1086 interface SetScriptSourceReturnType {1087 /**1088 * New stack trace in case editing has happened while VM was stopped.1089 */1090 callFrames?: CallFrame[] | undefined;1091 /**1092 * Whether current call stack was modified after applying the changes.1093 */1094 stackChanged?: boolean | undefined;1095 /**1096 * Async stack trace, if any.1097 */1098 asyncStackTrace?: Runtime.StackTrace | undefined;1099 /**1100 * Async stack trace, if any.1101 * @experimental1102 */1103 asyncStackTraceId?: Runtime.StackTraceId | undefined;1104 /**1105 * Exception details if any.1106 */1107 exceptionDetails?: Runtime.ExceptionDetails | undefined;1108 }1109 interface RestartFrameReturnType {1110 /**1111 * New stack trace.1112 */1113 callFrames: CallFrame[];1114 /**1115 * Async stack trace, if any.1116 */1117 asyncStackTrace?: Runtime.StackTrace | undefined;1118 /**1119 * Async stack trace, if any.1120 * @experimental1121 */1122 asyncStackTraceId?: Runtime.StackTraceId | undefined;1123 }1124 interface GetScriptSourceReturnType {1125 /**1126 * Script source.1127 */1128 scriptSource: string;1129 }1130 interface EvaluateOnCallFrameReturnType {1131 /**1132 * Object wrapper for the evaluation result.1133 */1134 result: Runtime.RemoteObject;1135 /**1136 * Exception details.1137 */1138 exceptionDetails?: Runtime.ExceptionDetails | undefined;1139 }1140 interface ScriptParsedEventDataType {1141 /**1142 * Identifier of the script parsed.1143 */1144 scriptId: Runtime.ScriptId;1145 /**1146 * URL or name of the script parsed (if any).1147 */1148 url: string;1149 /**1150 * Line offset of the script within the resource with given URL (for script tags).1151 */1152 startLine: number;1153 /**1154 * Column offset of the script within the resource with given URL.1155 */1156 startColumn: number;1157 /**1158 * Last line of the script.1159 */1160 endLine: number;1161 /**1162 * Length of the last line of the script.1163 */1164 endColumn: number;1165 /**1166 * Specifies script creation context.1167 */1168 executionContextId: Runtime.ExecutionContextId;1169 /**1170 * Content hash of the script.1171 */1172 hash: string;1173 /**1174 * Embedder-specific auxiliary data.1175 */1176 executionContextAuxData?: {} | undefined;1177 /**1178 * True, if this script is generated as a result of the live edit operation.1179 * @experimental1180 */1181 isLiveEdit?: boolean | undefined;1182 /**1183 * URL of source map associated with script (if any).1184 */1185 sourceMapURL?: string | undefined;1186 /**1187 * True, if this script has sourceURL.1188 */1189 hasSourceURL?: boolean | undefined;1190 /**1191 * True, if this script is ES6 module.1192 */1193 isModule?: boolean | undefined;1194 /**1195 * This script length.1196 */1197 length?: number | undefined;1198 /**1199 * JavaScript top stack frame of where the script parsed event was triggered if available.1200 * @experimental