Skip to main content

cdp_protocol/
debugger.rs

1// Auto-generated from Chrome at version 146.0.7680.165 domain: Debugger
2#![allow(dead_code)]
3use super::runtime;
4#[allow(unused_imports)]
5use super::types::*;
6#[allow(unused_imports)]
7use derive_builder::Builder;
8#[allow(unused_imports)]
9use serde::{Deserialize, Serialize};
10#[allow(unused_imports)]
11use serde_json::Value as Json;
12pub type BreakpointId = String;
13pub type CallFrameId = String;
14#[allow(deprecated)]
15#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
16pub enum ScopeType {
17    #[serde(rename = "global")]
18    Global,
19    #[serde(rename = "local")]
20    Local,
21    #[serde(rename = "with")]
22    With,
23    #[serde(rename = "closure")]
24    Closure,
25    #[serde(rename = "catch")]
26    Catch,
27    #[serde(rename = "block")]
28    Block,
29    #[serde(rename = "script")]
30    Script,
31    #[serde(rename = "eval")]
32    Eval,
33    #[serde(rename = "module")]
34    Module,
35    #[serde(rename = "wasm-expression-stack")]
36    WasmExpressionStack,
37}
38#[allow(deprecated)]
39#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
40pub enum BreakLocationType {
41    #[serde(rename = "debuggerStatement")]
42    DebuggerStatement,
43    #[serde(rename = "call")]
44    Call,
45    #[serde(rename = "return")]
46    Return,
47}
48#[allow(deprecated)]
49#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
50pub enum ScriptLanguage {
51    #[serde(rename = "JavaScript")]
52    JavaScript,
53    #[serde(rename = "WebAssembly")]
54    WebAssembly,
55}
56#[allow(deprecated)]
57#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
58pub enum DebugSymbolsType {
59    #[serde(rename = "SourceMap")]
60    SourceMap,
61    #[serde(rename = "EmbeddedDWARF")]
62    EmbeddedDwarf,
63    #[serde(rename = "ExternalDWARF")]
64    ExternalDwarf,
65}
66#[allow(deprecated)]
67#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
68pub enum ContinueToLocationTargetCallFramesOption {
69    #[serde(rename = "any")]
70    Any,
71    #[serde(rename = "current")]
72    Current,
73}
74#[allow(deprecated)]
75#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
76pub enum RestartFrameModeOption {
77    #[serde(rename = "StepInto")]
78    StepInto,
79}
80#[allow(deprecated)]
81#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
82pub enum SetInstrumentationBreakpointInstrumentationOption {
83    #[serde(rename = "beforeScriptExecution")]
84    BeforeScriptExecution,
85    #[serde(rename = "beforeScriptWithSourceMapExecution")]
86    BeforeScriptWithSourceMapExecution,
87}
88#[allow(deprecated)]
89#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
90pub enum SetPauseOnExceptionsStateOption {
91    #[serde(rename = "none")]
92    None,
93    #[serde(rename = "caught")]
94    Caught,
95    #[serde(rename = "uncaught")]
96    Uncaught,
97    #[serde(rename = "all")]
98    All,
99}
100#[allow(deprecated)]
101#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
102pub enum StatusOption {
103    #[serde(rename = "Ok")]
104    Ok,
105    #[serde(rename = "CompileError")]
106    CompileError,
107    #[serde(rename = "BlockedByActiveGenerator")]
108    BlockedByActiveGenerator,
109    #[serde(rename = "BlockedByActiveFunction")]
110    BlockedByActiveFunction,
111    #[serde(rename = "BlockedByTopLevelEsModuleChange")]
112    BlockedByTopLevelEsModuleChange,
113}
114#[allow(deprecated)]
115#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
116pub enum PausedReasonOption {
117    #[serde(rename = "ambiguous")]
118    Ambiguous,
119    #[serde(rename = "assert")]
120    Assert,
121    #[serde(rename = "CSPViolation")]
122    CspViolation,
123    #[serde(rename = "debugCommand")]
124    DebugCommand,
125    #[serde(rename = "DOM")]
126    Dom,
127    #[serde(rename = "EventListener")]
128    EventListener,
129    #[serde(rename = "exception")]
130    Exception,
131    #[serde(rename = "instrumentation")]
132    Instrumentation,
133    #[serde(rename = "OOM")]
134    Oom,
135    #[serde(rename = "other")]
136    Other,
137    #[serde(rename = "promiseRejection")]
138    PromiseRejection,
139    #[serde(rename = "XHR")]
140    Xhr,
141    #[serde(rename = "step")]
142    Step,
143}
144#[allow(deprecated)]
145#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
146#[builder(setter(into, strip_option))]
147#[serde(rename_all = "camelCase")]
148#[doc = "Location in the source code."]
149pub struct Location {
150    #[doc = "Script identifier as reported in the `Debugger.scriptParsed`."]
151    pub script_id: runtime::ScriptId,
152    #[serde(default)]
153    #[doc = "Line number in the script (0-based)."]
154    pub line_number: JsUInt,
155    #[builder(default)]
156    #[serde(skip_serializing_if = "Option::is_none")]
157    #[serde(default)]
158    #[doc = "Column number in the script (0-based)."]
159    pub column_number: Option<JsUInt>,
160}
161#[allow(deprecated)]
162#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
163#[builder(setter(into, strip_option))]
164#[serde(rename_all = "camelCase")]
165#[doc = "Location in the source code."]
166pub struct ScriptPosition {
167    #[serde(default)]
168    pub line_number: JsUInt,
169    #[serde(default)]
170    pub column_number: JsUInt,
171}
172#[allow(deprecated)]
173#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
174#[builder(setter(into, strip_option))]
175#[serde(rename_all = "camelCase")]
176#[doc = "Location range within one script."]
177pub struct LocationRange {
178    pub script_id: runtime::ScriptId,
179    pub start: ScriptPosition,
180    pub end: ScriptPosition,
181}
182#[allow(deprecated)]
183#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
184#[builder(setter(into, strip_option))]
185#[serde(rename_all = "camelCase")]
186#[doc = "JavaScript call frame. Array of call frames form the call stack."]
187pub struct CallFrame {
188    #[doc = "Call frame identifier. This identifier is only valid while the virtual machine is paused."]
189    pub call_frame_id: CallFrameId,
190    #[serde(default)]
191    #[doc = "Name of the JavaScript function called on this call frame."]
192    pub function_name: String,
193    #[builder(default)]
194    #[serde(skip_serializing_if = "Option::is_none")]
195    #[doc = "Location in the source code."]
196    pub function_location: Option<Location>,
197    #[doc = "Location in the source code."]
198    pub location: Location,
199    #[serde(default)]
200    #[doc = "JavaScript script name or url.\n Deprecated in favor of using the `location.scriptId` to resolve the URL via a previously\n sent `Debugger.scriptParsed` event."]
201    #[deprecated]
202    pub url: String,
203    #[doc = "Scope chain for this call frame."]
204    pub scope_chain: Vec<Scope>,
205    #[doc = "`this` object for this call frame."]
206    pub this: runtime::RemoteObject,
207    #[builder(default)]
208    #[serde(skip_serializing_if = "Option::is_none")]
209    #[doc = "The value being returned, if the function is at return point."]
210    pub return_value: Option<runtime::RemoteObject>,
211    #[builder(default)]
212    #[serde(skip_serializing_if = "Option::is_none")]
213    #[serde(default)]
214    #[doc = "Valid only while the VM is paused and indicates whether this frame\n can be restarted or not. Note that a `true` value here does not\n guarantee that Debugger#restartFrame with this CallFrameId will be\n successful, but it is very likely."]
215    pub can_be_restarted: Option<bool>,
216}
217#[allow(deprecated)]
218#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
219#[builder(setter(into, strip_option))]
220#[serde(rename_all = "camelCase")]
221#[doc = "Scope description."]
222pub struct Scope {
223    #[doc = "Scope type."]
224    pub r#type: ScopeType,
225    #[doc = "Object representing the scope. For `global` and `with` scopes it represents the actual\n object; for the rest of the scopes, it is artificial transient object enumerating scope\n variables as its properties."]
226    pub object: runtime::RemoteObject,
227    #[builder(default)]
228    #[serde(skip_serializing_if = "Option::is_none")]
229    #[serde(default)]
230    pub name: Option<String>,
231    #[builder(default)]
232    #[serde(skip_serializing_if = "Option::is_none")]
233    #[doc = "Location in the source code where scope starts"]
234    pub start_location: Option<Location>,
235    #[builder(default)]
236    #[serde(skip_serializing_if = "Option::is_none")]
237    #[doc = "Location in the source code where scope ends"]
238    pub end_location: Option<Location>,
239}
240#[allow(deprecated)]
241#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
242#[builder(setter(into, strip_option))]
243#[serde(rename_all = "camelCase")]
244#[doc = "Search match for resource."]
245pub struct SearchMatch {
246    #[serde(default)]
247    #[doc = "Line number in resource content."]
248    pub line_number: JsFloat,
249    #[serde(default)]
250    #[doc = "Line with match content."]
251    pub line_content: String,
252}
253#[allow(deprecated)]
254#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
255#[builder(setter(into, strip_option))]
256#[serde(rename_all = "camelCase")]
257pub struct BreakLocation {
258    #[doc = "Script identifier as reported in the `Debugger.scriptParsed`."]
259    pub script_id: runtime::ScriptId,
260    #[serde(default)]
261    #[doc = "Line number in the script (0-based)."]
262    pub line_number: JsUInt,
263    #[builder(default)]
264    #[serde(skip_serializing_if = "Option::is_none")]
265    #[serde(default)]
266    #[doc = "Column number in the script (0-based)."]
267    pub column_number: Option<JsUInt>,
268    #[builder(default)]
269    #[serde(skip_serializing_if = "Option::is_none")]
270    pub r#type: Option<BreakLocationType>,
271}
272#[allow(deprecated)]
273#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
274#[builder(setter(into, strip_option))]
275#[serde(rename_all = "camelCase")]
276pub struct WasmDisassemblyChunk {
277    #[serde(default)]
278    #[doc = "The next chunk of disassembled lines."]
279    pub lines: Vec<String>,
280    #[serde(default)]
281    #[doc = "The bytecode offsets describing the start of each line."]
282    pub bytecode_offsets: Vec<JsUInt>,
283}
284#[allow(deprecated)]
285#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
286#[builder(setter(into, strip_option))]
287#[serde(rename_all = "camelCase")]
288#[doc = "Debug symbols available for a wasm script."]
289pub struct DebugSymbols {
290    #[doc = "Type of the debug symbols."]
291    pub r#type: DebugSymbolsType,
292    #[builder(default)]
293    #[serde(skip_serializing_if = "Option::is_none")]
294    #[serde(default)]
295    #[doc = "URL of the external symbol source."]
296    #[serde(rename = "externalURL")]
297    pub external_url: Option<String>,
298}
299#[allow(deprecated)]
300#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
301#[builder(setter(into, strip_option))]
302#[serde(rename_all = "camelCase")]
303pub struct ResolvedBreakpoint {
304    #[doc = "Breakpoint unique identifier."]
305    pub breakpoint_id: BreakpointId,
306    #[doc = "Actual breakpoint location."]
307    pub location: Location,
308}
309#[allow(deprecated)]
310#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
311#[builder(setter(into, strip_option))]
312#[serde(rename_all = "camelCase")]
313#[doc = "Continues execution until specific location is reached."]
314pub struct ContinueToLocation {
315    #[doc = "Location to continue to."]
316    pub location: Location,
317    #[builder(default)]
318    #[serde(skip_serializing_if = "Option::is_none")]
319    pub target_call_frames: Option<ContinueToLocationTargetCallFramesOption>,
320}
321#[allow(deprecated)]
322#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
323pub struct Disable(pub Option<Json>);
324#[allow(deprecated)]
325#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
326#[builder(setter(into, strip_option))]
327#[serde(rename_all = "camelCase")]
328#[doc = "Enables debugger for the given page. Clients should not assume that the debugging has been\n enabled until the result for this command is received."]
329pub struct Enable {
330    #[builder(default)]
331    #[serde(skip_serializing_if = "Option::is_none")]
332    #[serde(default)]
333    #[doc = "The maximum size in bytes of collected scripts (not referenced by other heap objects)\n the debugger can hold. Puts no limit if parameter is omitted."]
334    pub max_scripts_cache_size: Option<JsFloat>,
335}
336#[allow(deprecated)]
337#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
338#[builder(setter(into, strip_option))]
339#[serde(rename_all = "camelCase")]
340#[doc = "Evaluates expression on a given call frame."]
341pub struct EvaluateOnCallFrame {
342    #[doc = "Call frame identifier to evaluate on."]
343    pub call_frame_id: CallFrameId,
344    #[serde(default)]
345    #[doc = "Expression to evaluate."]
346    pub expression: String,
347    #[builder(default)]
348    #[serde(skip_serializing_if = "Option::is_none")]
349    #[serde(default)]
350    #[doc = "String object group name to put result into (allows rapid releasing resulting object handles\n using `releaseObjectGroup`)."]
351    pub object_group: Option<String>,
352    #[builder(default)]
353    #[serde(skip_serializing_if = "Option::is_none")]
354    #[serde(default)]
355    #[doc = "Specifies whether command line API should be available to the evaluated expression, defaults\n to false."]
356    #[serde(rename = "includeCommandLineAPI")]
357    pub include_command_line_api: Option<bool>,
358    #[builder(default)]
359    #[serde(skip_serializing_if = "Option::is_none")]
360    #[serde(default)]
361    #[doc = "In silent mode exceptions thrown during evaluation are not reported and do not pause\n execution. Overrides `setPauseOnException` state."]
362    pub silent: Option<bool>,
363    #[builder(default)]
364    #[serde(skip_serializing_if = "Option::is_none")]
365    #[serde(default)]
366    #[doc = "Whether the result is expected to be a JSON object that should be sent by value."]
367    pub return_by_value: Option<bool>,
368    #[builder(default)]
369    #[serde(skip_serializing_if = "Option::is_none")]
370    #[serde(default)]
371    #[doc = "Whether preview should be generated for the result."]
372    pub generate_preview: Option<bool>,
373    #[builder(default)]
374    #[serde(skip_serializing_if = "Option::is_none")]
375    #[serde(default)]
376    #[doc = "Whether to throw an exception if side effect cannot be ruled out during evaluation."]
377    pub throw_on_side_effect: Option<bool>,
378    #[builder(default)]
379    #[serde(skip_serializing_if = "Option::is_none")]
380    #[doc = "Terminate execution after timing out (number of milliseconds)."]
381    pub timeout: Option<runtime::TimeDelta>,
382}
383#[allow(deprecated)]
384#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
385#[builder(setter(into, strip_option))]
386#[serde(rename_all = "camelCase")]
387#[doc = "Returns possible locations for breakpoint. scriptId in start and end range locations should be\n the same."]
388pub struct GetPossibleBreakpoints {
389    #[doc = "Start of range to search possible breakpoint locations in."]
390    pub start: Location,
391    #[builder(default)]
392    #[serde(skip_serializing_if = "Option::is_none")]
393    #[doc = "End of range to search possible breakpoint locations in (excluding). When not specified, end\n of scripts is used as end of range."]
394    pub end: Option<Location>,
395    #[builder(default)]
396    #[serde(skip_serializing_if = "Option::is_none")]
397    #[serde(default)]
398    #[doc = "Only consider locations which are in the same (non-nested) function as start."]
399    pub restrict_to_function: Option<bool>,
400}
401#[allow(deprecated)]
402#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
403#[builder(setter(into, strip_option))]
404#[serde(rename_all = "camelCase")]
405#[doc = "Returns source for the script with given id."]
406pub struct GetScriptSource {
407    #[doc = "Id of the script to get source for."]
408    pub script_id: runtime::ScriptId,
409}
410#[allow(deprecated)]
411#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
412#[builder(setter(into, strip_option))]
413#[serde(rename_all = "camelCase")]
414pub struct DisassembleWasmModule {
415    #[doc = "Id of the script to disassemble"]
416    pub script_id: runtime::ScriptId,
417}
418#[allow(deprecated)]
419#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
420#[builder(setter(into, strip_option))]
421#[serde(rename_all = "camelCase")]
422#[doc = "Disassemble the next chunk of lines for the module corresponding to the\n stream. If disassembly is complete, this API will invalidate the streamId\n and return an empty chunk. Any subsequent calls for the now invalid stream\n will return errors."]
423pub struct NextWasmDisassemblyChunk {
424    #[serde(default)]
425    pub stream_id: String,
426}
427#[allow(deprecated)]
428#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
429#[builder(setter(into, strip_option))]
430#[serde(rename_all = "camelCase")]
431#[doc = "This command is deprecated. Use getScriptSource instead."]
432#[deprecated]
433pub struct GetWasmBytecode {
434    #[doc = "Id of the Wasm script to get source for."]
435    pub script_id: runtime::ScriptId,
436}
437#[allow(deprecated)]
438#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
439#[builder(setter(into, strip_option))]
440#[serde(rename_all = "camelCase")]
441#[doc = "Returns stack trace with given `stackTraceId`."]
442pub struct GetStackTrace {
443    pub stack_trace_id: runtime::StackTraceId,
444}
445#[allow(deprecated)]
446#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
447pub struct Pause(pub Option<Json>);
448#[allow(deprecated)]
449#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
450#[builder(setter(into, strip_option))]
451#[serde(rename_all = "camelCase")]
452#[deprecated]
453pub struct PauseOnAsyncCall {
454    #[doc = "Debugger will pause when async call with given stack trace is started."]
455    pub parent_stack_trace_id: runtime::StackTraceId,
456}
457#[allow(deprecated)]
458#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
459#[builder(setter(into, strip_option))]
460#[serde(rename_all = "camelCase")]
461#[doc = "Removes JavaScript breakpoint."]
462pub struct RemoveBreakpoint {
463    pub breakpoint_id: BreakpointId,
464}
465#[allow(deprecated)]
466#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
467#[builder(setter(into, strip_option))]
468#[serde(rename_all = "camelCase")]
469#[doc = "Restarts particular call frame from the beginning. The old, deprecated\n behavior of `restartFrame` is to stay paused and allow further CDP commands\n after a restart was scheduled. This can cause problems with restarting, so\n we now continue execution immediatly after it has been scheduled until we\n reach the beginning of the restarted frame.\n \n To stay back-wards compatible, `restartFrame` now expects a `mode`\n parameter to be present. If the `mode` parameter is missing, `restartFrame`\n errors out.\n \n The various return values are deprecated and `callFrames` is always empty.\n Use the call frames from the `Debugger#paused` events instead, that fires\n once V8 pauses at the beginning of the restarted function."]
470pub struct RestartFrame {
471    #[doc = "Call frame identifier to evaluate on."]
472    pub call_frame_id: CallFrameId,
473    #[builder(default)]
474    #[serde(skip_serializing_if = "Option::is_none")]
475    #[doc = "The `mode` parameter must be present and set to 'StepInto', otherwise\n `restartFrame` will error out."]
476    pub mode: Option<RestartFrameModeOption>,
477}
478#[allow(deprecated)]
479#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
480#[builder(setter(into, strip_option))]
481#[serde(rename_all = "camelCase")]
482#[doc = "Resumes JavaScript execution."]
483pub struct Resume {
484    #[builder(default)]
485    #[serde(skip_serializing_if = "Option::is_none")]
486    #[serde(default)]
487    #[doc = "Set to true to terminate execution upon resuming execution. In contrast\n to Runtime.terminateExecution, this will allows to execute further\n JavaScript (i.e. via evaluation) until execution of the paused code\n is actually resumed, at which point termination is triggered.\n If execution is currently not paused, this parameter has no effect."]
488    pub terminate_on_resume: Option<bool>,
489}
490#[allow(deprecated)]
491#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
492#[builder(setter(into, strip_option))]
493#[serde(rename_all = "camelCase")]
494#[doc = "Searches for given string in script content."]
495pub struct SearchInContent {
496    #[doc = "Id of the script to search in."]
497    pub script_id: runtime::ScriptId,
498    #[serde(default)]
499    #[doc = "String to search for."]
500    pub query: String,
501    #[builder(default)]
502    #[serde(skip_serializing_if = "Option::is_none")]
503    #[serde(default)]
504    #[doc = "If true, search is case sensitive."]
505    pub case_sensitive: Option<bool>,
506    #[builder(default)]
507    #[serde(skip_serializing_if = "Option::is_none")]
508    #[serde(default)]
509    #[doc = "If true, treats string parameter as regex."]
510    pub is_regex: Option<bool>,
511}
512#[allow(deprecated)]
513#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
514#[builder(setter(into, strip_option))]
515#[serde(rename_all = "camelCase")]
516#[doc = "Enables or disables async call stacks tracking."]
517pub struct SetAsyncCallStackDepth {
518    #[serde(default)]
519    #[doc = "Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async\n call stacks (default)."]
520    pub max_depth: JsUInt,
521}
522#[allow(deprecated)]
523#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
524#[builder(setter(into, strip_option))]
525#[serde(rename_all = "camelCase")]
526#[doc = "Replace previous blackbox execution contexts with passed ones. Forces backend to skip\n stepping/pausing in scripts in these execution contexts. VM will try to leave blackboxed script by\n performing 'step in' several times, finally resorting to 'step out' if unsuccessful."]
527pub struct SetBlackboxExecutionContexts {
528    #[serde(default)]
529    #[doc = "Array of execution context unique ids for the debugger to ignore."]
530    pub unique_ids: Vec<String>,
531}
532#[allow(deprecated)]
533#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
534#[builder(setter(into, strip_option))]
535#[serde(rename_all = "camelCase")]
536#[doc = "Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in\n scripts with url matching one of the patterns. VM will try to leave blackboxed script by\n performing 'step in' several times, finally resorting to 'step out' if unsuccessful."]
537pub struct SetBlackboxPatterns {
538    #[serde(default)]
539    #[doc = "Array of regexps that will be used to check script url for blackbox state."]
540    pub patterns: Vec<String>,
541    #[builder(default)]
542    #[serde(skip_serializing_if = "Option::is_none")]
543    #[serde(default)]
544    #[doc = "If true, also ignore scripts with no source url."]
545    pub skip_anonymous: Option<bool>,
546}
547#[allow(deprecated)]
548#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
549#[builder(setter(into, strip_option))]
550#[serde(rename_all = "camelCase")]
551#[doc = "Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted\n scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.\n Positions array contains positions where blackbox state is changed. First interval isn't\n blackboxed. Array should be sorted."]
552pub struct SetBlackboxedRanges {
553    #[doc = "Id of the script."]
554    pub script_id: runtime::ScriptId,
555    pub positions: Vec<ScriptPosition>,
556}
557#[allow(deprecated)]
558#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
559#[builder(setter(into, strip_option))]
560#[serde(rename_all = "camelCase")]
561#[doc = "Sets JavaScript breakpoint at a given location."]
562pub struct SetBreakpoint {
563    #[doc = "Location to set breakpoint in."]
564    pub location: Location,
565    #[builder(default)]
566    #[serde(skip_serializing_if = "Option::is_none")]
567    #[serde(default)]
568    #[doc = "Expression to use as a breakpoint condition. When specified, debugger will only stop on the\n breakpoint if this expression evaluates to true."]
569    pub condition: Option<String>,
570}
571#[allow(deprecated)]
572#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
573#[builder(setter(into, strip_option))]
574#[serde(rename_all = "camelCase")]
575#[doc = "Sets instrumentation breakpoint."]
576pub struct SetInstrumentationBreakpoint {
577    #[doc = "Instrumentation name."]
578    pub instrumentation: SetInstrumentationBreakpointInstrumentationOption,
579}
580#[allow(deprecated)]
581#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
582#[builder(setter(into, strip_option))]
583#[serde(rename_all = "camelCase")]
584#[doc = "Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this\n command is issued, all existing parsed scripts will have breakpoints resolved and returned in\n `locations` property. Further matching script parsing will result in subsequent\n `breakpointResolved` events issued. This logical breakpoint will survive page reloads."]
585pub struct SetBreakpointByUrl {
586    #[serde(default)]
587    #[doc = "Line number to set breakpoint at."]
588    pub line_number: JsUInt,
589    #[builder(default)]
590    #[serde(skip_serializing_if = "Option::is_none")]
591    #[serde(default)]
592    #[doc = "URL of the resources to set breakpoint on."]
593    pub url: Option<String>,
594    #[builder(default)]
595    #[serde(skip_serializing_if = "Option::is_none")]
596    #[serde(default)]
597    #[doc = "Regex pattern for the URLs of the resources to set breakpoints on. Either `url` or\n `urlRegex` must be specified."]
598    pub url_regex: Option<String>,
599    #[builder(default)]
600    #[serde(skip_serializing_if = "Option::is_none")]
601    #[serde(default)]
602    #[doc = "Script hash of the resources to set breakpoint on."]
603    pub script_hash: Option<String>,
604    #[builder(default)]
605    #[serde(skip_serializing_if = "Option::is_none")]
606    #[serde(default)]
607    #[doc = "Offset in the line to set breakpoint at."]
608    pub column_number: Option<JsUInt>,
609    #[builder(default)]
610    #[serde(skip_serializing_if = "Option::is_none")]
611    #[serde(default)]
612    #[doc = "Expression to use as a breakpoint condition. When specified, debugger will only stop on the\n breakpoint if this expression evaluates to true."]
613    pub condition: Option<String>,
614}
615#[allow(deprecated)]
616#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
617#[builder(setter(into, strip_option))]
618#[serde(rename_all = "camelCase")]
619#[doc = "Sets JavaScript breakpoint before each call to the given function.\n If another function was created from the same source as a given one,\n calling it will also trigger the breakpoint."]
620pub struct SetBreakpointOnFunctionCall {
621    #[doc = "Function object id."]
622    pub object_id: runtime::RemoteObjectId,
623    #[builder(default)]
624    #[serde(skip_serializing_if = "Option::is_none")]
625    #[serde(default)]
626    #[doc = "Expression to use as a breakpoint condition. When specified, debugger will\n stop on the breakpoint if this expression evaluates to true."]
627    pub condition: Option<String>,
628}
629#[allow(deprecated)]
630#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
631#[builder(setter(into, strip_option))]
632#[serde(rename_all = "camelCase")]
633#[doc = "Activates / deactivates all breakpoints on the page."]
634pub struct SetBreakpointsActive {
635    #[serde(default)]
636    #[doc = "New value for breakpoints active state."]
637    pub active: bool,
638}
639#[allow(deprecated)]
640#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
641#[builder(setter(into, strip_option))]
642#[serde(rename_all = "camelCase")]
643#[doc = "Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions,\n or caught exceptions, no exceptions. Initial pause on exceptions state is `none`."]
644pub struct SetPauseOnExceptions {
645    #[doc = "Pause on exceptions mode."]
646    pub state: SetPauseOnExceptionsStateOption,
647}
648#[allow(deprecated)]
649#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
650#[builder(setter(into, strip_option))]
651#[serde(rename_all = "camelCase")]
652#[doc = "Changes return value in top frame. Available only at return break position."]
653pub struct SetReturnValue {
654    #[doc = "New return value."]
655    pub new_value: runtime::CallArgument,
656}
657#[allow(deprecated)]
658#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
659#[builder(setter(into, strip_option))]
660#[serde(rename_all = "camelCase")]
661#[doc = "Edits JavaScript source live.\n \n In general, functions that are currently on the stack can not be edited with\n a single exception: If the edited function is the top-most stack frame and\n that is the only activation of that function on the stack. In this case\n the live edit will be successful and a `Debugger.restartFrame` for the\n top-most function is automatically triggered."]
662pub struct SetScriptSource {
663    #[doc = "Id of the script to edit."]
664    pub script_id: runtime::ScriptId,
665    #[serde(default)]
666    #[doc = "New content of the script."]
667    pub script_source: String,
668    #[builder(default)]
669    #[serde(skip_serializing_if = "Option::is_none")]
670    #[serde(default)]
671    #[doc = "If true the change will not actually be applied. Dry run may be used to get result\n description without actually modifying the code."]
672    pub dry_run: Option<bool>,
673    #[builder(default)]
674    #[serde(skip_serializing_if = "Option::is_none")]
675    #[serde(default)]
676    #[doc = "If true, then `scriptSource` is allowed to change the function on top of the stack\n as long as the top-most stack frame is the only activation of that function."]
677    pub allow_top_frame_editing: Option<bool>,
678}
679#[allow(deprecated)]
680#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
681#[builder(setter(into, strip_option))]
682#[serde(rename_all = "camelCase")]
683#[doc = "Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc)."]
684pub struct SetSkipAllPauses {
685    #[serde(default)]
686    #[doc = "New value for skip pauses state."]
687    pub skip: bool,
688}
689#[allow(deprecated)]
690#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
691#[builder(setter(into, strip_option))]
692#[serde(rename_all = "camelCase")]
693#[doc = "Changes value of variable in a callframe. Object-based scopes are not supported and must be\n mutated manually."]
694pub struct SetVariableValue {
695    #[serde(default)]
696    #[doc = "0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch'\n scope types are allowed. Other scopes could be manipulated manually."]
697    pub scope_number: JsUInt,
698    #[serde(default)]
699    #[doc = "Variable name."]
700    pub variable_name: String,
701    #[doc = "New variable value."]
702    pub new_value: runtime::CallArgument,
703    #[doc = "Id of callframe that holds variable."]
704    pub call_frame_id: CallFrameId,
705}
706#[allow(deprecated)]
707#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
708#[builder(setter(into, strip_option))]
709#[serde(rename_all = "camelCase")]
710#[doc = "Steps into the function call."]
711pub struct StepInto {
712    #[builder(default)]
713    #[serde(skip_serializing_if = "Option::is_none")]
714    #[serde(default)]
715    #[doc = "Debugger will pause on the execution of the first async task which was scheduled\n before next pause."]
716    pub break_on_async_call: Option<bool>,
717    #[builder(default)]
718    #[serde(skip_serializing_if = "Option::is_none")]
719    #[doc = "The skipList specifies location ranges that should be skipped on step into."]
720    pub skip_list: Option<Vec<LocationRange>>,
721}
722#[allow(deprecated)]
723#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
724pub struct StepOut(pub Option<Json>);
725#[allow(deprecated)]
726#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
727#[builder(setter(into, strip_option))]
728#[serde(rename_all = "camelCase")]
729#[doc = "Steps over the statement."]
730pub struct StepOver {
731    #[builder(default)]
732    #[serde(skip_serializing_if = "Option::is_none")]
733    #[doc = "The skipList specifies location ranges that should be skipped on step over."]
734    pub skip_list: Option<Vec<LocationRange>>,
735}
736#[allow(deprecated)]
737#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
738#[doc = "Continues execution until specific location is reached."]
739pub struct ContinueToLocationReturnObject(pub Option<Json>);
740#[allow(deprecated)]
741#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
742#[doc = "Disables debugger for given page."]
743pub struct DisableReturnObject(pub Option<Json>);
744#[allow(deprecated)]
745#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
746#[serde(rename_all = "camelCase")]
747#[doc = "Enables debugger for the given page. Clients should not assume that the debugging has been\n enabled until the result for this command is received."]
748pub struct EnableReturnObject {
749    #[doc = "Unique identifier of the debugger."]
750    pub debugger_id: runtime::UniqueDebuggerId,
751}
752#[allow(deprecated)]
753#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
754#[serde(rename_all = "camelCase")]
755#[doc = "Evaluates expression on a given call frame."]
756pub struct EvaluateOnCallFrameReturnObject {
757    #[doc = "Object wrapper for the evaluation result."]
758    pub result: runtime::RemoteObject,
759    #[builder(default)]
760    #[serde(skip_serializing_if = "Option::is_none")]
761    #[doc = "Exception details."]
762    pub exception_details: Option<runtime::ExceptionDetails>,
763}
764#[allow(deprecated)]
765#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
766#[serde(rename_all = "camelCase")]
767#[doc = "Returns possible locations for breakpoint. scriptId in start and end range locations should be\n the same."]
768pub struct GetPossibleBreakpointsReturnObject {
769    #[doc = "List of the possible breakpoint locations."]
770    pub locations: Vec<BreakLocation>,
771}
772#[allow(deprecated)]
773#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
774#[serde(rename_all = "camelCase")]
775#[doc = "Returns source for the script with given id."]
776pub struct GetScriptSourceReturnObject {
777    #[serde(default)]
778    #[doc = "Script source (empty in case of Wasm bytecode)."]
779    pub script_source: String,
780    #[builder(default)]
781    #[serde(skip_serializing_if = "Option::is_none")]
782    #[doc = "Wasm bytecode."]
783    pub bytecode: Option<String>,
784}
785#[allow(deprecated)]
786#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
787#[serde(rename_all = "camelCase")]
788pub struct DisassembleWasmModuleReturnObject {
789    #[builder(default)]
790    #[serde(skip_serializing_if = "Option::is_none")]
791    #[serde(default)]
792    #[doc = "For large modules, return a stream from which additional chunks of\n disassembly can be read successively."]
793    pub stream_id: Option<String>,
794    #[serde(default)]
795    #[doc = "The total number of lines in the disassembly text."]
796    pub total_number_of_lines: JsUInt,
797    #[doc = "The offsets of all function bodies, in the format \\[start1, end1,\n start2, end2, ...\\] where all ends are exclusive."]
798    pub function_body_offsets: Vec<JsUInt>,
799    #[doc = "The first chunk of disassembly."]
800    pub chunk: WasmDisassemblyChunk,
801}
802#[allow(deprecated)]
803#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
804#[serde(rename_all = "camelCase")]
805#[doc = "Disassemble the next chunk of lines for the module corresponding to the\n stream. If disassembly is complete, this API will invalidate the streamId\n and return an empty chunk. Any subsequent calls for the now invalid stream\n will return errors."]
806pub struct NextWasmDisassemblyChunkReturnObject {
807    #[doc = "The next chunk of disassembly."]
808    pub chunk: WasmDisassemblyChunk,
809}
810#[allow(deprecated)]
811#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
812#[serde(rename_all = "camelCase")]
813#[doc = "This command is deprecated. Use getScriptSource instead."]
814#[deprecated]
815pub struct GetWasmBytecodeReturnObject {
816    #[doc = "Script source."]
817    pub bytecode: String,
818}
819#[allow(deprecated)]
820#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
821#[serde(rename_all = "camelCase")]
822#[doc = "Returns stack trace with given `stackTraceId`."]
823pub struct GetStackTraceReturnObject {
824    pub stack_trace: runtime::StackTrace,
825}
826#[allow(deprecated)]
827#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
828#[doc = "Stops on the next JavaScript statement."]
829pub struct PauseReturnObject(pub Option<Json>);
830#[allow(deprecated)]
831#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
832#[deprecated]
833pub struct PauseOnAsyncCallReturnObject(pub Option<Json>);
834#[allow(deprecated)]
835#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
836#[doc = "Removes JavaScript breakpoint."]
837pub struct RemoveBreakpointReturnObject(pub Option<Json>);
838#[allow(deprecated)]
839#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
840#[serde(rename_all = "camelCase")]
841#[doc = "Restarts particular call frame from the beginning. The old, deprecated\n behavior of `restartFrame` is to stay paused and allow further CDP commands\n after a restart was scheduled. This can cause problems with restarting, so\n we now continue execution immediatly after it has been scheduled until we\n reach the beginning of the restarted frame.\n \n To stay back-wards compatible, `restartFrame` now expects a `mode`\n parameter to be present. If the `mode` parameter is missing, `restartFrame`\n errors out.\n \n The various return values are deprecated and `callFrames` is always empty.\n Use the call frames from the `Debugger#paused` events instead, that fires\n once V8 pauses at the beginning of the restarted function."]
842pub struct RestartFrameReturnObject {
843    #[doc = "New stack trace."]
844    #[deprecated]
845    pub call_frames: Vec<CallFrame>,
846    #[builder(default)]
847    #[serde(skip_serializing_if = "Option::is_none")]
848    #[doc = "Async stack trace, if any."]
849    #[deprecated]
850    pub async_stack_trace: Option<runtime::StackTrace>,
851    #[builder(default)]
852    #[serde(skip_serializing_if = "Option::is_none")]
853    #[doc = "Async stack trace, if any."]
854    #[deprecated]
855    pub async_stack_trace_id: Option<runtime::StackTraceId>,
856}
857#[allow(deprecated)]
858#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
859#[doc = "Resumes JavaScript execution."]
860pub struct ResumeReturnObject(pub Option<Json>);
861#[allow(deprecated)]
862#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
863#[serde(rename_all = "camelCase")]
864#[doc = "Searches for given string in script content."]
865pub struct SearchInContentReturnObject {
866    #[doc = "List of search matches."]
867    pub result: Vec<SearchMatch>,
868}
869#[allow(deprecated)]
870#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
871#[doc = "Enables or disables async call stacks tracking."]
872pub struct SetAsyncCallStackDepthReturnObject(pub Option<Json>);
873#[allow(deprecated)]
874#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
875#[doc = "Replace previous blackbox execution contexts with passed ones. Forces backend to skip\n stepping/pausing in scripts in these execution contexts. VM will try to leave blackboxed script by\n performing 'step in' several times, finally resorting to 'step out' if unsuccessful."]
876pub struct SetBlackboxExecutionContextsReturnObject(pub Option<Json>);
877#[allow(deprecated)]
878#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
879#[doc = "Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in\n scripts with url matching one of the patterns. VM will try to leave blackboxed script by\n performing 'step in' several times, finally resorting to 'step out' if unsuccessful."]
880pub struct SetBlackboxPatternsReturnObject(pub Option<Json>);
881#[allow(deprecated)]
882#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
883#[doc = "Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted\n scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.\n Positions array contains positions where blackbox state is changed. First interval isn't\n blackboxed. Array should be sorted."]
884pub struct SetBlackboxedRangesReturnObject(pub Option<Json>);
885#[allow(deprecated)]
886#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
887#[serde(rename_all = "camelCase")]
888#[doc = "Sets JavaScript breakpoint at a given location."]
889pub struct SetBreakpointReturnObject {
890    #[doc = "Id of the created breakpoint for further reference."]
891    pub breakpoint_id: BreakpointId,
892    #[doc = "Location this breakpoint resolved into."]
893    pub actual_location: Location,
894}
895#[allow(deprecated)]
896#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
897#[serde(rename_all = "camelCase")]
898#[doc = "Sets instrumentation breakpoint."]
899pub struct SetInstrumentationBreakpointReturnObject {
900    #[doc = "Id of the created breakpoint for further reference."]
901    pub breakpoint_id: BreakpointId,
902}
903#[allow(deprecated)]
904#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
905#[serde(rename_all = "camelCase")]
906#[doc = "Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this\n command is issued, all existing parsed scripts will have breakpoints resolved and returned in\n `locations` property. Further matching script parsing will result in subsequent\n `breakpointResolved` events issued. This logical breakpoint will survive page reloads."]
907pub struct SetBreakpointByUrlReturnObject {
908    #[doc = "Id of the created breakpoint for further reference."]
909    pub breakpoint_id: BreakpointId,
910    #[doc = "List of the locations this breakpoint resolved into upon addition."]
911    pub locations: Vec<Location>,
912}
913#[allow(deprecated)]
914#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
915#[serde(rename_all = "camelCase")]
916#[doc = "Sets JavaScript breakpoint before each call to the given function.\n If another function was created from the same source as a given one,\n calling it will also trigger the breakpoint."]
917pub struct SetBreakpointOnFunctionCallReturnObject {
918    #[doc = "Id of the created breakpoint for further reference."]
919    pub breakpoint_id: BreakpointId,
920}
921#[allow(deprecated)]
922#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
923#[doc = "Activates / deactivates all breakpoints on the page."]
924pub struct SetBreakpointsActiveReturnObject(pub Option<Json>);
925#[allow(deprecated)]
926#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
927#[doc = "Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions,\n or caught exceptions, no exceptions. Initial pause on exceptions state is `none`."]
928pub struct SetPauseOnExceptionsReturnObject(pub Option<Json>);
929#[allow(deprecated)]
930#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
931#[doc = "Changes return value in top frame. Available only at return break position."]
932pub struct SetReturnValueReturnObject(pub Option<Json>);
933#[allow(deprecated)]
934#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
935#[serde(rename_all = "camelCase")]
936#[doc = "Edits JavaScript source live.\n \n In general, functions that are currently on the stack can not be edited with\n a single exception: If the edited function is the top-most stack frame and\n that is the only activation of that function on the stack. In this case\n the live edit will be successful and a `Debugger.restartFrame` for the\n top-most function is automatically triggered."]
937pub struct SetScriptSourceReturnObject {
938    #[builder(default)]
939    #[serde(skip_serializing_if = "Option::is_none")]
940    #[doc = "New stack trace in case editing has happened while VM was stopped."]
941    #[deprecated]
942    pub call_frames: Option<Vec<CallFrame>>,
943    #[builder(default)]
944    #[serde(skip_serializing_if = "Option::is_none")]
945    #[serde(default)]
946    #[doc = "Whether current call stack  was modified after applying the changes."]
947    #[deprecated]
948    pub stack_changed: Option<bool>,
949    #[builder(default)]
950    #[serde(skip_serializing_if = "Option::is_none")]
951    #[doc = "Async stack trace, if any."]
952    #[deprecated]
953    pub async_stack_trace: Option<runtime::StackTrace>,
954    #[builder(default)]
955    #[serde(skip_serializing_if = "Option::is_none")]
956    #[doc = "Async stack trace, if any."]
957    #[deprecated]
958    pub async_stack_trace_id: Option<runtime::StackTraceId>,
959    #[doc = "Whether the operation was successful or not. Only `Ok` denotes a\n successful live edit while the other enum variants denote why\n the live edit failed."]
960    pub status: StatusOption,
961    #[builder(default)]
962    #[serde(skip_serializing_if = "Option::is_none")]
963    #[doc = "Exception details if any. Only present when `status` is `CompileError`."]
964    pub exception_details: Option<runtime::ExceptionDetails>,
965}
966#[allow(deprecated)]
967#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
968#[doc = "Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc)."]
969pub struct SetSkipAllPausesReturnObject(pub Option<Json>);
970#[allow(deprecated)]
971#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
972#[doc = "Changes value of variable in a callframe. Object-based scopes are not supported and must be\n mutated manually."]
973pub struct SetVariableValueReturnObject(pub Option<Json>);
974#[allow(deprecated)]
975#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
976#[doc = "Steps into the function call."]
977pub struct StepIntoReturnObject(pub Option<Json>);
978#[allow(deprecated)]
979#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
980#[doc = "Steps out of the function call."]
981pub struct StepOutReturnObject(pub Option<Json>);
982#[allow(deprecated)]
983#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
984#[doc = "Steps over the statement."]
985pub struct StepOverReturnObject(pub Option<Json>);
986#[allow(deprecated)]
987impl Method for ContinueToLocation {
988    const NAME: &'static str = "Debugger.continueToLocation";
989    type ReturnObject = ContinueToLocationReturnObject;
990}
991#[allow(deprecated)]
992impl Method for Disable {
993    const NAME: &'static str = "Debugger.disable";
994    type ReturnObject = DisableReturnObject;
995}
996#[allow(deprecated)]
997impl Method for Enable {
998    const NAME: &'static str = "Debugger.enable";
999    type ReturnObject = EnableReturnObject;
1000}
1001#[allow(deprecated)]
1002impl Method for EvaluateOnCallFrame {
1003    const NAME: &'static str = "Debugger.evaluateOnCallFrame";
1004    type ReturnObject = EvaluateOnCallFrameReturnObject;
1005}
1006#[allow(deprecated)]
1007impl Method for GetPossibleBreakpoints {
1008    const NAME: &'static str = "Debugger.getPossibleBreakpoints";
1009    type ReturnObject = GetPossibleBreakpointsReturnObject;
1010}
1011#[allow(deprecated)]
1012impl Method for GetScriptSource {
1013    const NAME: &'static str = "Debugger.getScriptSource";
1014    type ReturnObject = GetScriptSourceReturnObject;
1015}
1016#[allow(deprecated)]
1017impl Method for DisassembleWasmModule {
1018    const NAME: &'static str = "Debugger.disassembleWasmModule";
1019    type ReturnObject = DisassembleWasmModuleReturnObject;
1020}
1021#[allow(deprecated)]
1022impl Method for NextWasmDisassemblyChunk {
1023    const NAME: &'static str = "Debugger.nextWasmDisassemblyChunk";
1024    type ReturnObject = NextWasmDisassemblyChunkReturnObject;
1025}
1026#[allow(deprecated)]
1027impl Method for GetWasmBytecode {
1028    const NAME: &'static str = "Debugger.getWasmBytecode";
1029    type ReturnObject = GetWasmBytecodeReturnObject;
1030}
1031#[allow(deprecated)]
1032impl Method for GetStackTrace {
1033    const NAME: &'static str = "Debugger.getStackTrace";
1034    type ReturnObject = GetStackTraceReturnObject;
1035}
1036#[allow(deprecated)]
1037impl Method for Pause {
1038    const NAME: &'static str = "Debugger.pause";
1039    type ReturnObject = PauseReturnObject;
1040}
1041#[allow(deprecated)]
1042impl Method for PauseOnAsyncCall {
1043    const NAME: &'static str = "Debugger.pauseOnAsyncCall";
1044    type ReturnObject = PauseOnAsyncCallReturnObject;
1045}
1046#[allow(deprecated)]
1047impl Method for RemoveBreakpoint {
1048    const NAME: &'static str = "Debugger.removeBreakpoint";
1049    type ReturnObject = RemoveBreakpointReturnObject;
1050}
1051#[allow(deprecated)]
1052impl Method for RestartFrame {
1053    const NAME: &'static str = "Debugger.restartFrame";
1054    type ReturnObject = RestartFrameReturnObject;
1055}
1056#[allow(deprecated)]
1057impl Method for Resume {
1058    const NAME: &'static str = "Debugger.resume";
1059    type ReturnObject = ResumeReturnObject;
1060}
1061#[allow(deprecated)]
1062impl Method for SearchInContent {
1063    const NAME: &'static str = "Debugger.searchInContent";
1064    type ReturnObject = SearchInContentReturnObject;
1065}
1066#[allow(deprecated)]
1067impl Method for SetAsyncCallStackDepth {
1068    const NAME: &'static str = "Debugger.setAsyncCallStackDepth";
1069    type ReturnObject = SetAsyncCallStackDepthReturnObject;
1070}
1071#[allow(deprecated)]
1072impl Method for SetBlackboxExecutionContexts {
1073    const NAME: &'static str = "Debugger.setBlackboxExecutionContexts";
1074    type ReturnObject = SetBlackboxExecutionContextsReturnObject;
1075}
1076#[allow(deprecated)]
1077impl Method for SetBlackboxPatterns {
1078    const NAME: &'static str = "Debugger.setBlackboxPatterns";
1079    type ReturnObject = SetBlackboxPatternsReturnObject;
1080}
1081#[allow(deprecated)]
1082impl Method for SetBlackboxedRanges {
1083    const NAME: &'static str = "Debugger.setBlackboxedRanges";
1084    type ReturnObject = SetBlackboxedRangesReturnObject;
1085}
1086#[allow(deprecated)]
1087impl Method for SetBreakpoint {
1088    const NAME: &'static str = "Debugger.setBreakpoint";
1089    type ReturnObject = SetBreakpointReturnObject;
1090}
1091#[allow(deprecated)]
1092impl Method for SetInstrumentationBreakpoint {
1093    const NAME: &'static str = "Debugger.setInstrumentationBreakpoint";
1094    type ReturnObject = SetInstrumentationBreakpointReturnObject;
1095}
1096#[allow(deprecated)]
1097impl Method for SetBreakpointByUrl {
1098    const NAME: &'static str = "Debugger.setBreakpointByUrl";
1099    type ReturnObject = SetBreakpointByUrlReturnObject;
1100}
1101#[allow(deprecated)]
1102impl Method for SetBreakpointOnFunctionCall {
1103    const NAME: &'static str = "Debugger.setBreakpointOnFunctionCall";
1104    type ReturnObject = SetBreakpointOnFunctionCallReturnObject;
1105}
1106#[allow(deprecated)]
1107impl Method for SetBreakpointsActive {
1108    const NAME: &'static str = "Debugger.setBreakpointsActive";
1109    type ReturnObject = SetBreakpointsActiveReturnObject;
1110}
1111#[allow(deprecated)]
1112impl Method for SetPauseOnExceptions {
1113    const NAME: &'static str = "Debugger.setPauseOnExceptions";
1114    type ReturnObject = SetPauseOnExceptionsReturnObject;
1115}
1116#[allow(deprecated)]
1117impl Method for SetReturnValue {
1118    const NAME: &'static str = "Debugger.setReturnValue";
1119    type ReturnObject = SetReturnValueReturnObject;
1120}
1121#[allow(deprecated)]
1122impl Method for SetScriptSource {
1123    const NAME: &'static str = "Debugger.setScriptSource";
1124    type ReturnObject = SetScriptSourceReturnObject;
1125}
1126#[allow(deprecated)]
1127impl Method for SetSkipAllPauses {
1128    const NAME: &'static str = "Debugger.setSkipAllPauses";
1129    type ReturnObject = SetSkipAllPausesReturnObject;
1130}
1131#[allow(deprecated)]
1132impl Method for SetVariableValue {
1133    const NAME: &'static str = "Debugger.setVariableValue";
1134    type ReturnObject = SetVariableValueReturnObject;
1135}
1136#[allow(deprecated)]
1137impl Method for StepInto {
1138    const NAME: &'static str = "Debugger.stepInto";
1139    type ReturnObject = StepIntoReturnObject;
1140}
1141#[allow(deprecated)]
1142impl Method for StepOut {
1143    const NAME: &'static str = "Debugger.stepOut";
1144    type ReturnObject = StepOutReturnObject;
1145}
1146#[allow(deprecated)]
1147impl Method for StepOver {
1148    const NAME: &'static str = "Debugger.stepOver";
1149    type ReturnObject = StepOverReturnObject;
1150}
1151#[allow(dead_code)]
1152pub mod events {
1153    #[allow(unused_imports)]
1154    use super::super::types::*;
1155    #[allow(unused_imports)]
1156    use derive_builder::Builder;
1157    #[allow(unused_imports)]
1158    use serde::{Deserialize, Serialize};
1159    #[allow(unused_imports)]
1160    use serde_json::Value as Json;
1161    #[allow(deprecated)]
1162    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1163    pub struct BreakpointResolvedEvent {
1164        pub params: BreakpointResolvedEventParams,
1165    }
1166    #[allow(deprecated)]
1167    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1168    #[serde(rename_all = "camelCase")]
1169    pub struct BreakpointResolvedEventParams {
1170        #[doc = "Breakpoint unique identifier."]
1171        pub breakpoint_id: super::BreakpointId,
1172        #[doc = "Actual breakpoint location."]
1173        pub location: super::Location,
1174    }
1175    #[allow(deprecated)]
1176    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1177    pub struct PausedEvent {
1178        pub params: PausedEventParams,
1179    }
1180    #[allow(deprecated)]
1181    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1182    #[serde(rename_all = "camelCase")]
1183    pub struct PausedEventParams {
1184        #[doc = "Call stack the virtual machine stopped on."]
1185        pub call_frames: Vec<super::CallFrame>,
1186        #[doc = "Pause reason."]
1187        pub reason: super::PausedReasonOption,
1188        #[builder(default)]
1189        #[serde(skip_serializing_if = "Option::is_none")]
1190        #[serde(default)]
1191        #[doc = "Object containing break-specific auxiliary properties."]
1192        pub data: Option<Json>,
1193        #[builder(default)]
1194        #[serde(skip_serializing_if = "Option::is_none")]
1195        #[serde(default)]
1196        #[doc = "Hit breakpoints IDs"]
1197        pub hit_breakpoints: Option<Vec<String>>,
1198        #[builder(default)]
1199        #[serde(skip_serializing_if = "Option::is_none")]
1200        #[doc = "Async stack trace, if any."]
1201        pub async_stack_trace: Option<super::super::runtime::StackTrace>,
1202        #[builder(default)]
1203        #[serde(skip_serializing_if = "Option::is_none")]
1204        #[doc = "Async stack trace, if any."]
1205        pub async_stack_trace_id: Option<super::super::runtime::StackTraceId>,
1206        #[builder(default)]
1207        #[serde(skip_serializing_if = "Option::is_none")]
1208        #[doc = "Never present, will be removed."]
1209        #[deprecated]
1210        pub async_call_stack_trace_id: Option<super::super::runtime::StackTraceId>,
1211    }
1212    #[allow(deprecated)]
1213    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1214    pub struct ResumedEvent(pub Option<Json>);
1215    #[allow(deprecated)]
1216    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1217    pub struct ScriptFailedToParseEvent {
1218        pub params: ScriptFailedToParseEventParams,
1219    }
1220    #[allow(deprecated)]
1221    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1222    #[serde(rename_all = "camelCase")]
1223    pub struct ScriptFailedToParseEventParams {
1224        #[doc = "Identifier of the script parsed."]
1225        pub script_id: super::super::runtime::ScriptId,
1226        #[serde(default)]
1227        #[doc = "URL or name of the script parsed (if any)."]
1228        pub url: String,
1229        #[serde(default)]
1230        #[doc = "Line offset of the script within the resource with given URL (for script tags)."]
1231        pub start_line: JsUInt,
1232        #[serde(default)]
1233        #[doc = "Column offset of the script within the resource with given URL."]
1234        pub start_column: JsUInt,
1235        #[serde(default)]
1236        #[doc = "Last line of the script."]
1237        pub end_line: JsUInt,
1238        #[serde(default)]
1239        #[doc = "Length of the last line of the script."]
1240        pub end_column: JsUInt,
1241        #[doc = "Specifies script creation context."]
1242        pub execution_context_id: super::super::runtime::ExecutionContextId,
1243        #[serde(default)]
1244        #[doc = "Content hash of the script, SHA-256."]
1245        pub hash: String,
1246        #[serde(default)]
1247        #[doc = "For Wasm modules, the content of the `build_id` custom section. For JavaScript the `debugId` magic comment."]
1248        pub build_id: String,
1249        #[builder(default)]
1250        #[serde(skip_serializing_if = "Option::is_none")]
1251        #[serde(default)]
1252        #[doc = "Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}"]
1253        pub execution_context_aux_data: Option<Json>,
1254        #[builder(default)]
1255        #[serde(skip_serializing_if = "Option::is_none")]
1256        #[serde(default)]
1257        #[doc = "URL of source map associated with script (if any)."]
1258        #[serde(rename = "sourceMapURL")]
1259        pub source_map_url: Option<String>,
1260        #[builder(default)]
1261        #[serde(skip_serializing_if = "Option::is_none")]
1262        #[serde(default)]
1263        #[doc = "True, if this script has sourceURL."]
1264        #[serde(rename = "hasSourceURL")]
1265        pub has_source_url: Option<bool>,
1266        #[builder(default)]
1267        #[serde(skip_serializing_if = "Option::is_none")]
1268        #[serde(default)]
1269        #[doc = "True, if this script is ES6 module."]
1270        pub is_module: Option<bool>,
1271        #[builder(default)]
1272        #[serde(skip_serializing_if = "Option::is_none")]
1273        #[serde(default)]
1274        #[doc = "This script length."]
1275        pub length: Option<JsUInt>,
1276        #[builder(default)]
1277        #[serde(skip_serializing_if = "Option::is_none")]
1278        #[doc = "JavaScript top stack frame of where the script parsed event was triggered if available."]
1279        pub stack_trace: Option<super::super::runtime::StackTrace>,
1280        #[builder(default)]
1281        #[serde(skip_serializing_if = "Option::is_none")]
1282        #[serde(default)]
1283        #[doc = "If the scriptLanguage is WebAssembly, the code section offset in the module."]
1284        pub code_offset: Option<JsUInt>,
1285        #[builder(default)]
1286        #[serde(skip_serializing_if = "Option::is_none")]
1287        #[doc = "The language of the script."]
1288        pub script_language: Option<super::super::debugger::ScriptLanguage>,
1289        #[builder(default)]
1290        #[serde(skip_serializing_if = "Option::is_none")]
1291        #[serde(default)]
1292        #[doc = "The name the embedder supplied for this script."]
1293        pub embedder_name: Option<String>,
1294    }
1295    #[allow(deprecated)]
1296    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1297    pub struct ScriptParsedEvent {
1298        pub params: ScriptParsedEventParams,
1299    }
1300    #[allow(deprecated)]
1301    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1302    #[serde(rename_all = "camelCase")]
1303    pub struct ScriptParsedEventParams {
1304        #[doc = "Identifier of the script parsed."]
1305        pub script_id: super::super::runtime::ScriptId,
1306        #[serde(default)]
1307        #[doc = "URL or name of the script parsed (if any)."]
1308        pub url: String,
1309        #[serde(default)]
1310        #[doc = "Line offset of the script within the resource with given URL (for script tags)."]
1311        pub start_line: JsUInt,
1312        #[serde(default)]
1313        #[doc = "Column offset of the script within the resource with given URL."]
1314        pub start_column: JsUInt,
1315        #[serde(default)]
1316        #[doc = "Last line of the script."]
1317        pub end_line: JsUInt,
1318        #[serde(default)]
1319        #[doc = "Length of the last line of the script."]
1320        pub end_column: JsUInt,
1321        #[doc = "Specifies script creation context."]
1322        pub execution_context_id: super::super::runtime::ExecutionContextId,
1323        #[serde(default)]
1324        #[doc = "Content hash of the script, SHA-256."]
1325        pub hash: String,
1326        #[serde(default)]
1327        #[doc = "For Wasm modules, the content of the `build_id` custom section. For JavaScript the `debugId` magic comment."]
1328        pub build_id: String,
1329        #[builder(default)]
1330        #[serde(skip_serializing_if = "Option::is_none")]
1331        #[serde(default)]
1332        #[doc = "Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}"]
1333        pub execution_context_aux_data: Option<Json>,
1334        #[builder(default)]
1335        #[serde(skip_serializing_if = "Option::is_none")]
1336        #[serde(default)]
1337        #[doc = "True, if this script is generated as a result of the live edit operation."]
1338        pub is_live_edit: Option<bool>,
1339        #[builder(default)]
1340        #[serde(skip_serializing_if = "Option::is_none")]
1341        #[serde(default)]
1342        #[doc = "URL of source map associated with script (if any)."]
1343        #[serde(rename = "sourceMapURL")]
1344        pub source_map_url: Option<String>,
1345        #[builder(default)]
1346        #[serde(skip_serializing_if = "Option::is_none")]
1347        #[serde(default)]
1348        #[doc = "True, if this script has sourceURL."]
1349        #[serde(rename = "hasSourceURL")]
1350        pub has_source_url: Option<bool>,
1351        #[builder(default)]
1352        #[serde(skip_serializing_if = "Option::is_none")]
1353        #[serde(default)]
1354        #[doc = "True, if this script is ES6 module."]
1355        pub is_module: Option<bool>,
1356        #[builder(default)]
1357        #[serde(skip_serializing_if = "Option::is_none")]
1358        #[serde(default)]
1359        #[doc = "This script length."]
1360        pub length: Option<JsUInt>,
1361        #[builder(default)]
1362        #[serde(skip_serializing_if = "Option::is_none")]
1363        #[doc = "JavaScript top stack frame of where the script parsed event was triggered if available."]
1364        pub stack_trace: Option<super::super::runtime::StackTrace>,
1365        #[builder(default)]
1366        #[serde(skip_serializing_if = "Option::is_none")]
1367        #[serde(default)]
1368        #[doc = "If the scriptLanguage is WebAssembly, the code section offset in the module."]
1369        pub code_offset: Option<JsUInt>,
1370        #[builder(default)]
1371        #[serde(skip_serializing_if = "Option::is_none")]
1372        #[doc = "The language of the script."]
1373        pub script_language: Option<super::super::debugger::ScriptLanguage>,
1374        #[builder(default)]
1375        #[serde(skip_serializing_if = "Option::is_none")]
1376        #[doc = "If the scriptLanguage is WebAssembly, the source of debug symbols for the module."]
1377        pub debug_symbols: Option<super::super::debugger::DebugSymbols>,
1378        #[builder(default)]
1379        #[serde(skip_serializing_if = "Option::is_none")]
1380        #[serde(default)]
1381        #[doc = "The name the embedder supplied for this script."]
1382        pub embedder_name: Option<String>,
1383        #[builder(default)]
1384        #[serde(skip_serializing_if = "Option::is_none")]
1385        #[doc = "The list of set breakpoints in this script if calls to `setBreakpointByUrl`\n matches this script's URL or hash. Clients that use this list can ignore the\n `breakpointResolved` event. They are equivalent."]
1386        pub resolved_breakpoints: Option<Vec<super::ResolvedBreakpoint>>,
1387    }
1388}