1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
U
[±dÑ©ã @s´ddlmZddlmZmZddlmZddlZddlZddl    m
Z
Gdd„de ƒZ Gd    d
„d
e ƒZ eGd d „d ƒƒZeGd d„dƒƒZeGdd„dƒƒZeGdd„dƒƒZeGdd„dƒƒZeGdd„dƒƒZGdd„dejƒZeGdd„dƒƒZdŸd dddœdd„Zdd œd!d"„Zd d#d$d%œd&d'„Zd¡d
d(dd)d)d)d)d)d*d+d,œ
d-d.„Zd¢d
d(d*d+d/œd0d1„Zd£d d2d)d3d4œd5d6„Zd7d8d9œd:d;„Zd7d<d9œd=d>„Zd?d@dAœdBdC„Zdd œdDdE„Z d?ddFœdGdH„Z!dddIœdJdK„Z"d
dLdMœdNdO„Z#d¤d)ddPœdQdR„Z$d¥d7d(d)d)dSdTœdUdV„Z%dWddXœdYdZ„Z&d[dd\œd]d^„Z'd7d_dd`œdadb„Z(d¦d ddcddœdedf„Z)d(dgdhœdidj„Z*d§dWddddkddldmœdndo„Z+d¨dpddgdqœdrds„Z,dtdduœdvdw„Z-d(ddxœdydz„Z.d{dd|œd}d~„Z/d©d7d(d)dd€œdd‚„Z0dtddƒœd„d…„Z1dWd(d{d
dd†œd‡dˆ„Z2dªd)dd‰œdŠd‹„Z3dd œdŒd„Z4dd œdŽd„Z5edƒeGd‘d’„d’ƒƒƒZ6ed“ƒeGd”d•„d•ƒƒƒZ7ed–ƒeGd—d˜„d˜ƒƒƒZ8ed™ƒeGdšd›„d›ƒƒƒZ9edœƒeGddž„džƒƒƒZ:dS)«é)Ú annotationsé)Ú event_classÚ T_JSON_DICT)Ú    dataclassN)ÚruntimecsBeZdZdZddœdd„Zedddœdd„ƒZ‡fd    d
„Z‡ZS) Ú BreakpointIdz 
    Breakpoint identifier.
    Ústr©ÚreturncCs|S©N©©Úselfr r úfd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/common/devtools/v85/debugger.pyÚto_jsonszBreakpointId.to_json©Újsonr cCs||ƒSr r ©Úclsrr r rÚ    from_jsonszBreakpointId.from_jsoncsd tƒ ¡¡S)NzBreakpointId({})©ÚformatÚsuperÚ__repr__r©Ú    __class__r rrszBreakpointId.__repr__©    Ú__name__Ú
__module__Ú __qualname__Ú__doc__rÚ classmethodrrÚ __classcell__r r rrrs
rcsBeZdZdZddœdd„Zedddœdd„ƒZ‡fd    d
„Z‡ZS) Ú CallFrameIdz 
    Call frame identifier.
    r    r
cCs|Sr r rr r rr"szCallFrameId.to_jsonrcCs||ƒSr r rr r rr%szCallFrameId.from_jsoncsd tƒ ¡¡S)NzCallFrameId({})rrrr rr)szCallFrameId.__repr__rr r rrr$s
r$c@sBeZdZUdZded<ded<dZded<d    d
„Zed d „ƒZdS) ÚLocationú&
    Location in the source code.
    úruntime.ScriptIdÚ    script_idÚintÚ line_numberNútyping.Optional[int]Ú column_numbercCs6tƒ}|j ¡|d<|j|d<|jdk    r2|j|d<|S)NÚscriptIdÚ
lineNumberÚ columnNumber)Údictr(rr*r,©rrr r rr;s 
 
 
zLocation.to_jsoncCs6|tj |d¡t|dƒd|kr.t|dƒnddS)Nr-r.r/)r(r*r,)rÚScriptIdrr)rr r rrCs
 
ýzLocation.from_json)    rrr r!Ú__annotations__r,rr"rr r r rr%-s
 r%c@s6eZdZUdZded<ded<dd„Zedd„ƒZd    S)
ÚScriptPositionr&r)r*r,cCstƒ}|j|d<|j|d<|S)Nr.r/)r0r*r,r1r r rrUs
 
zScriptPosition.to_jsoncCs|t|dƒt|dƒdS)Nr.r/)r*r,)r)rr r rr[s
 
þzScriptPosition.from_jsonN©rrr r!r3rr"rr r r rr4Ls
r4c@sneZdZUdZded<ded<ded<ded<d    ed
<d ed <d Zded<d Zded<dd„Zedd„ƒZ    d S)Ú    CallFramezJ
    JavaScript call frame. Array of call frames form the call stack.
    r$Ú call_frame_idr    Ú function_namer%ÚlocationÚurlztyping.List[Scope]Ú scope_chainúruntime.RemoteObjectÚthisNútyping.Optional[Location]Úfunction_locationz%typing.Optional[runtime.RemoteObject]Ú return_valuecCsŒtƒ}|j ¡|d<|j|d<|j ¡|d<|j|d<dd„|jDƒ|d<|j ¡|d<|jdk    rp|j ¡|d    <|j    dk    rˆ|j     ¡|d
<|S) NÚ callFrameIdÚ functionNamer9r:cSsg|] }| ¡‘qSr ©r©Ú.0Úir r rÚ
<listcomp>†sz%CallFrame.to_json.<locals>.<listcomp>Ú
scopeChainr=ÚfunctionLocationÚ returnValue)
r0r7rr8r9r:r;r=r?r@r1r r rr€s
 
 
 
zCallFrame.to_jsonc Cs„|t |d¡t|dƒt |d¡t|dƒdd„|dDƒtj |d¡d    |krbt |d    ¡ndd
|kr|tj |d
¡ndd S) NrArBr9r:cSsg|]}t |¡‘qSr )ÚScoperrDr r rrG•sz'CallFrame.from_json.<locals>.<listcomp>rHr=rIrJ)r7r8r9r:r;r=r?r@)r$rr    r%rÚ RemoteObjectrr r rrŽs 
 
øzCallFrame.from_json)
rrr r!r3r?r@rr"rr r r rr6cs
  r6c@sZeZdZUdZded<ded<dZded<dZd    ed
<dZd    ed <d d „Ze    dd„ƒZ
dS)rKz
    Scope description.
    r    Útype_r<Úobject_Nútyping.Optional[str]Únamer>Ústart_locationÚ end_locationcCsftƒ}|j|d<|j ¡|d<|jdk    r2|j|d<|jdk    rJ|j ¡|d<|jdk    rb|j ¡|d<|S)NÚtypeÚobjectrPÚ startLocationÚ endLocation)r0rMrNrrPrQrRr1r r rr±s
 
 
 
 
z Scope.to_jsonc    Csf|t|dƒtj |d¡d|kr.t|dƒndd|krFt |d¡ndd|kr^t |d¡nddS)NrSrTrPrUrV)rMrNrPrQrR)r    rrLrr%rr r rr½s
ûzScope.from_json) rrr r!r3rPrQrRrr"rr r r rrKœs
    rKc@s6eZdZUdZded<ded<dd„Zedd    „ƒZd
S) Ú SearchMatchz$
    Search match for resource.
    Úfloatr*r    Ú line_contentcCstƒ}|j|d<|j|d<|S)Nr.Ú lineContent)r0r*rYr1r r rrÓs
 
zSearchMatch.to_jsoncCs|t|dƒt|dƒdS)Nr.rZ)r*rY)rXr    rr r rrÙs
 
þzSearchMatch.from_jsonNr5r r r rrWÈs
rWc@sJeZdZUded<ded<dZded<dZded    <d
d „Zed d „ƒZdS)Ú BreakLocationr'r(r)r*Nr+r,rOrMcCsJtƒ}|j ¡|d<|j|d<|jdk    r2|j|d<|jdk    rF|j|d<|S)Nr-r.r/rS)r0r(rr*r,rMr1r r rrîs
 
 
 
 
zBreakLocation.to_jsoncCsL|tj |d¡t|dƒd|kr.t|dƒndd|krDt|dƒnddS)Nr-r.r/rS)r(r*r,rM)rr2rr)r    rr r rrøs 
üzBreakLocation.from_json)    rrr r3r,rMrr"rr r r rr[ás
 
r[c@s,eZdZdZdZdZdd„Zedd„ƒZdS)    ÚScriptLanguagez,
    Enum of possible script languages.
    Z
JavaScriptZ WebAssemblycCs|jSr )Úvaluerr r rr    szScriptLanguage.to_jsoncCs||ƒSr r rr r rr szScriptLanguage.from_jsonN)    rrr r!Z JAVA_SCRIPTZ WEB_ASSEMBLYrr"rr r r rr\s r\c@s:eZdZUdZded<dZded<dd„Zed    d
„ƒZdS) Ú DebugSymbolsz4
    Debug symbols available for a wasm script.
    r    rMNrOÚ external_urlcCs(tƒ}|j|d<|jdk    r$|j|d<|S)NrSÚ externalURL)r0rMr_r1r r rrs
 
 
 
zDebugSymbols.to_jsoncCs(|t|dƒd|kr t|dƒnddS)NrSr`)rMr_©r    rr r rr#s
þzDebugSymbols.from_json)    rrr r!r3r_rr"rr r r rr^s
 r^rOz0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])r9Útarget_call_framesr ccs6tƒ}| ¡|d<|dk    r"||d<d|dœ}|V}dS)zœ
    Continues execution until specific location is reached.
 
    :param location: Location to continue to.
    :param target_call_frames: *(Optional)*
    r9NZtargetCallFrameszDebugger.continueToLocation©ÚmethodÚparams©r0r)r9rbreÚcmd_dictrr r rÚcontinue_to_location+s
 þrhr
ccsddi}|V}dS)z+
    Disables debugger for given page.
    rdzDebugger.disableNr ©rgrr r rÚdisable@sÿrjztyping.Optional[float]zDtyping.Generator[T_JSON_DICT, T_JSON_DICT, runtime.UniqueDebuggerId])Úmax_scripts_cache_sizer ccs6tƒ}|dk    r||d<d|dœ}|V}tj |d¡S)a§
    Enables debugger for the given page. Clients should not assume that the debugging has been
    enabled until the result for this command is received.
 
    :param max_scripts_cache_size: **(EXPERIMENTAL)** *(Optional)* The maximum size in bytes of collected scripts (not referenced by other heap objects) the debugger can hold. Puts no limit if paramter is omitted.
    :returns: Unique identifier of the debugger.
    NZmaxScriptsCacheSizezDebugger.enablercZ
debuggerId)r0rZUniqueDebuggerIdr)rkrergrr r rÚenableJs
þrlr    útyping.Optional[bool]z"typing.Optional[runtime.TimeDelta]zytyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[runtime.RemoteObject, typing.Optional[runtime.ExceptionDetails]]])
r7Ú
expressionÚ object_groupÚinclude_command_line_apiÚsilentÚreturn_by_valueÚgenerate_previewÚthrow_on_side_effectÚtimeoutr c     csÊtƒ}    | ¡|    d<||    d<|dk    r*||    d<|dk    r:||    d<|dk    rJ||    d<|dk    rZ||    d<|dk    rj||    d<|dk    rz||    d    <|dk    rŽ| ¡|    d
<d |    d œ}
|
V} tj | d ¡d| krÄtj | d¡ndfS)a$
    Evaluates expression on a given call frame.
 
    :param call_frame_id: Call frame identifier to evaluate on.
    :param expression: Expression to evaluate.
    :param object_group: *(Optional)* String object group name to put result into (allows rapid releasing resulting object handles using ```releaseObjectGroup````).
    :param include_command_line_api: *(Optional)* Specifies whether command line API should be available to the evaluated expression, defaults to false.
    :param silent: *(Optional)* In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides ````setPauseOnException``` state.
    :param return_by_value: *(Optional)* Whether the result is expected to be a JSON object that should be sent by value.
    :param generate_preview: **(EXPERIMENTAL)** *(Optional)* Whether preview should be generated for the result.
    :param throw_on_side_effect: *(Optional)* Whether to throw an exception if side effect cannot be ruled out during evaluation.
    :param timeout: **(EXPERIMENTAL)** *(Optional)* Terminate execution after timing out (number of milliseconds).
    :returns: A tuple with the following items:
 
        0. **result** - Object wrapper for the evaluation result.
        1. **exceptionDetails** - *(Optional)* Exception details.
    rArnNZ objectGroupZincludeCommandLineAPIrqZ returnByValueZgeneratePreviewZthrowOnSideEffectruzDebugger.evaluateOnCallFramercÚresultÚexceptionDetails©r0rrrLrÚExceptionDetails) r7rnrorprqrrrsrtrurergrr r rÚevaluate_on_call_frame_s0  þþrz)r7Ú    evaluatorrur ccsjtƒ}| ¡|d<||d<|dk    r.| ¡|d<d|dœ}|V}tj |d¡d|krdtj |d¡ndfS)    aÿ
    Execute a Wasm Evaluator module on a given call frame.
 
    **EXPERIMENTAL**
 
    :param call_frame_id: WebAssembly call frame identifier to evaluate on.
    :param evaluator: Code of the evaluator module.
    :param timeout: **(EXPERIMENTAL)** *(Optional)* Terminate execution after timing out (number of milliseconds).
    :returns: A tuple with the following items:
 
        0. **result** - Object wrapper for the evaluation result.
        1. **exceptionDetails** - *(Optional)* Exception details.
    rAr{NruzDebugger.executeWasmEvaluatorrcrvrwrx)r7r{rurergrr r rÚexecute_wasm_evaluator—s  þþr|r>zFtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[BreakLocation]])ÚstartÚendÚrestrict_to_functionr ccsXtƒ}| ¡|d<|dk    r&| ¡|d<|dk    r6||d<d|dœ}|V}dd„|d    DƒS)
a
    Returns possible locations for breakpoint. scriptId in start and end range locations should be
    the same.
 
    :param start: Start of range to search possible breakpoint locations in.
    :param end: *(Optional)* End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range.
    :param restrict_to_function: *(Optional)* Only consider locations which are in the same (non-nested) function as start.
    :returns: List of the possible breakpoint locations.
    r}Nr~ZrestrictToFunctionzDebugger.getPossibleBreakpointsrccSsg|]}t |¡‘qSr )r[rrDr r rrGÒsz,get_possible_breakpoints.<locals>.<listcomp>Ú    locationsrf)r}r~rrergrr r rÚget_possible_breakpoints¹s  þrr'zStyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[str, typing.Optional[str]]])r(r ccsFtƒ}| ¡|d<d|dœ}|V}t|dƒd|kr@t|dƒndfS)a&
    Returns source for the script with given id.
 
    :param script_id: Id of the script to get source for.
    :returns: A tuple with the following items:
 
        0. **scriptSource** - Script source (empty in case of Wasm bytecode).
        1. **bytecode** - *(Optional)* Wasm bytecode.
    r-zDebugger.getScriptSourcercÚ scriptSourceÚbytecodeN©r0rr    ©r(rergrr r rÚget_script_sourceÕs  þ
þr†z/typing.Generator[T_JSON_DICT, T_JSON_DICT, str]ccs.tƒ}| ¡|d<d|dœ}|V}t|dƒS)zŸ
    This command is deprecated. Use getScriptSource instead.
 
    :param script_id: Id of the Wasm script to get source for.
    :returns: Script source.
    r-zDebugger.getWasmBytecodercrƒr„r…r r rÚget_wasm_bytecodeîs     þr‡zruntime.StackTraceIdz>typing.Generator[T_JSON_DICT, T_JSON_DICT, runtime.StackTrace])Ústack_trace_idr ccs2tƒ}| ¡|d<d|dœ}|V}tj |d¡S)z{
    Returns stack trace with given ``stackTraceId``.
 
    **EXPERIMENTAL**
 
    :param stack_trace_id:
    :returns: 
    Z stackTraceIdzDebugger.getStackTracercÚ
stackTrace)r0rrÚ
StackTracer)rˆrergrr r rÚget_stack_traces  þr‹ccsddi}|V}dS)z1
    Stops on the next JavaScript statement.
    rdzDebugger.pauseNr rir r rÚpausesÿrŒ)Úparent_stack_trace_idr ccs&tƒ}| ¡|d<d|dœ}|V}dS)z†
 
 
    **EXPERIMENTAL**
 
    :param parent_stack_trace_id: Debugger will pause when async call with given stack trace is started.
    ZparentStackTraceIdzDebugger.pauseOnAsyncCallrcNrf)rrergrr r rÚpause_on_async_call s
 þrŽ)Ú breakpoint_idr ccs&tƒ}| ¡|d<d|dœ}|V}dS)zC
    Removes JavaScript breakpoint.
 
    :param breakpoint_id:
    Ú breakpointIdzDebugger.removeBreakpointrcNrf)rrergrr r rÚremove_breakpoint3s  þr‘zœtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[typing.List[CallFrame], typing.Optional[runtime.StackTrace], typing.Optional[runtime.StackTraceId]]])r7r ccsjtƒ}| ¡|d<d|dœ}|V}dd„|dDƒd|krJtj |d¡ndd    |krdtj |d    ¡ndfS)
ao
    Restarts particular call frame from the beginning.
 
    :param call_frame_id: Call frame identifier to evaluate on.
    :returns: A tuple with the following items:
 
        0. **callFrames** - New stack trace.
        1. **asyncStackTrace** - *(Optional)* Async stack trace, if any.
        2. **asyncStackTraceId** - *(Optional)* Async stack trace, if any.
    rAzDebugger.restartFramerccSsg|]}t |¡‘qSr ©r6rrDr r rrGYsz!restart_frame.<locals>.<listcomp>Ú
callFramesÚasyncStackTraceNÚasyncStackTraceId)r0rrrŠrÚ StackTraceId)r7rergrr r rÚ restart_frameDs  þýr—)Úterminate_on_resumer ccs*tƒ}|dk    r||d<d|dœ}|V}dS)a¦
    Resumes JavaScript execution.
 
    :param terminate_on_resume: *(Optional)* Set to true to terminate execution upon resuming execution. In contrast to Runtime.terminateExecution, this will allows to execute further JavaScript (i.e. via evaluation) until execution of the paused code is actually resumed, at which point termination is triggered. If execution is currently not paused, this parameter has no effect.
    NZterminateOnResumezDebugger.resumerc©r0)r˜rergrr r rÚresume_sþršzDtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[SearchMatch]])r(ÚqueryÚcase_sensitiveÚis_regexr ccs\tƒ}| ¡|d<||d<|dk    r*||d<|dk    r:||d<d|dœ}|V}dd    „|d
DƒS) aR
    Searches for given string in script content.
 
    :param script_id: Id of the script to search in.
    :param query: String to search for.
    :param case_sensitive: *(Optional)* If true, search is case sensitive.
    :param is_regex: *(Optional)* If true, treats string parameter as regex.
    :returns: List of search matches.
    r-r›NZ caseSensitiveZisRegexzDebugger.searchInContentrccSsg|]}t |¡‘qSr )rWrrDr r rrGŒsz%search_in_content.<locals>.<listcomp>rvrf)r(r›rœrrergrr r rÚsearch_in_contentqs þržr))Ú    max_depthr ccs"tƒ}||d<d|dœ}|V}dS)zÈ
    Enables or disables async call stacks tracking.
 
    :param max_depth: Maximum depth of async call stacks. Setting to ```0``` will effectively disable collecting async call stacks (default).
    ZmaxDepthzDebugger.setAsyncCallStackDepthrcNr™)rŸrergrr r rÚset_async_call_stack_depths þr ztyping.List[str])Úpatternsr ccs,tƒ}dd„|Dƒ|d<d|dœ}|V}dS)a–
    Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in
    scripts with url matching one of the patterns. VM will try to leave blackboxed script by
    performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
 
    **EXPERIMENTAL**
 
    :param patterns: Array of regexps that will be used to check script url for blackbox state.
    cSsg|]}|‘qSr r rDr r rrG­sz)set_blackbox_patterns.<locals>.<listcomp>r¡zDebugger.setBlackboxPatternsrcNr™)r¡rergrr r rÚset_blackbox_patterns s þr¢ztyping.List[ScriptPosition])r(Ú    positionsr ccs8tƒ}| ¡|d<dd„|Dƒ|d<d|dœ}|V}dS)a¢
    Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted
    scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
    Positions array contains positions where blackbox state is changed. First interval isn't
    blackboxed. Array should be sorted.
 
    **EXPERIMENTAL**
 
    :param script_id: Id of the script.
    :param positions:
    r-cSsg|] }| ¡‘qSr rCrDr r rrGÆsz)set_blackboxed_ranges.<locals>.<listcomp>r£zDebugger.setBlackboxedRangesrcNrf)r(r£rergrr r rÚset_blackboxed_rangesµs þr¤zPtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[BreakpointId, Location]])r9Ú    conditionr ccsNtƒ}| ¡|d<|dk    r"||d<d|dœ}|V}t |d¡t |d¡fS)aé
    Sets JavaScript breakpoint at a given location.
 
    :param location: Location to set breakpoint in.
    :param condition: *(Optional)* Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
    :returns: A tuple with the following items:
 
        0. **breakpointId** - Id of the created breakpoint for further reference.
        1. **actualLocation** - Location this breakpoint resolved into.
    r9Nr¥zDebugger.setBreakpointrcrZactualLocation)r0rrrr%)r9r¥rergrr r rÚset_breakpointÎs þ  þr¦z8typing.Generator[T_JSON_DICT, T_JSON_DICT, BreakpointId])Úinstrumentationr ccs,tƒ}||d<d|dœ}|V}t |d¡S)zŸ
    Sets instrumentation breakpoint.
 
    :param instrumentation: Instrumentation name.
    :returns: Id of the created breakpoint for further reference.
    r§z%Debugger.setInstrumentationBreakpointrcr©r0rr)r§rergrr r rÚset_instrumentation_breakpointës    þr©r+z]typing.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[BreakpointId, typing.List[Location]]])r*r:Ú    url_regexÚ script_hashr,r¥r c    csŽtƒ}||d<|dk    r||d<|dk    r.||d<|dk    r>||d<|dk    rN||d<|dk    r^||d<d|d    œ}|V}t |d
¡d d „|d DƒfS)aÕ
    Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this
    command is issued, all existing parsed scripts will have breakpoints resolved and returned in
    ``locations`` property. Further matching script parsing will result in subsequent
    ``breakpointResolved`` events issued. This logical breakpoint will survive page reloads.
 
    :param line_number: Line number to set breakpoint at.
    :param url: *(Optional)* URL of the resources to set breakpoint on.
    :param url_regex: *(Optional)* Regex pattern for the URLs of the resources to set breakpoints on. Either ```url```` or ````urlRegex``` must be specified.
    :param script_hash: *(Optional)* Script hash of the resources to set breakpoint on.
    :param column_number: *(Optional)* Offset in the line to set breakpoint at.
    :param condition: *(Optional)* Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
    :returns: A tuple with the following items:
 
        0. **breakpointId** - Id of the created breakpoint for further reference.
        1. **locations** - List of the locations this breakpoint resolved into upon addition.
    r.Nr:ZurlRegexZ
scriptHashr/r¥zDebugger.setBreakpointByUrlrcrcSsg|]}t |¡‘qSr )r%rrDr r rrG*sz)set_breakpoint_by_url.<locals>.<listcomp>r€r¨)    r*r:rªr«r,r¥rergrr r rÚset_breakpoint_by_urlþs&þ þr¬zruntime.RemoteObjectId)Ú    object_idr¥r ccs@tƒ}| ¡|d<|dk    r"||d<d|dœ}|V}t |d¡S)aô
    Sets JavaScript breakpoint before each call to the given function.
    If another function was created from the same source as a given one,
    calling it will also trigger the breakpoint.
 
    **EXPERIMENTAL**
 
    :param object_id: Function object id.
    :param condition: *(Optional)* Expression to use as a breakpoint condition. When specified, debugger will stop on the breakpoint if this expression evaluates to true.
    :returns: Id of the created breakpoint for further reference.
    ZobjectIdNr¥z$Debugger.setBreakpointOnFunctionCallrcr)r0rrr)r­r¥rergrr r rÚset_breakpoint_on_function_call.s þr®Úbool)Úactiver ccs"tƒ}||d<d|dœ}|V}dS)zz
    Activates / deactivates all breakpoints on the page.
 
    :param active: New value for breakpoints active state.
    r°zDebugger.setBreakpointsActivercNr™)r°rergrr r rÚset_breakpoints_activeIs þr±)Ústater ccs"tƒ}||d<d|dœ}|V}dS)zØ
    Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or
    no exceptions. Initial pause on exceptions state is ``none``.
 
    :param state: Pause on exceptions mode.
    r²zDebugger.setPauseOnExceptionsrcNr™)r²rergrr r rÚset_pause_on_exceptionsZs     þr³zruntime.CallArgument)Ú    new_valuer ccs&tƒ}| ¡|d<d|dœ}|V}dS)z”
    Changes return value in top frame. Available only at return break position.
 
    **EXPERIMENTAL**
 
    :param new_value: New return value.
    ÚnewValuezDebugger.setReturnValuercNrf)r´rergrr r rÚset_return_valuels
 þr¶zïtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[typing.Optional[typing.List[CallFrame]], typing.Optional[bool], typing.Optional[runtime.StackTrace], typing.Optional[runtime.StackTraceId], typing.Optional[runtime.ExceptionDetails]]])r(Ú script_sourceÚdry_runr ccs¾tƒ}| ¡|d<||d<|dk    r*||d<d|dœ}|V}d|krTdd    „|dDƒndd
|krjt|d
ƒndd |kr„tj |d ¡ndd |kržtj |d ¡ndd |kr¸tj |d ¡ndfS)a
    Edits JavaScript source live.
 
    :param script_id: Id of the script to edit.
    :param script_source: New content of the script.
    :param dry_run: *(Optional)* If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.
    :returns: A tuple with the following items:
 
        0. **callFrames** - *(Optional)* New stack trace in case editing has happened while VM was stopped.
        1. **stackChanged** - *(Optional)* Whether current call stack  was modified after applying the changes.
        2. **asyncStackTrace** - *(Optional)* Async stack trace, if any.
        3. **asyncStackTraceId** - *(Optional)* Async stack trace, if any.
        4. **exceptionDetails** - *(Optional)* Exception details if any.
    r-r‚NZdryRunzDebugger.setScriptSourcercr“cSsg|]}t |¡‘qSr r’rDr r rrGsz%set_script_source.<locals>.<listcomp>Z stackChangedr”r•rw)r0rr¯rrŠrr–ry)r(r·r¸rergrr r rÚset_script_sources þûr¹)Úskipr ccs"tƒ}||d<d|dœ}|V}dS)z
    Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
 
    :param skip: New value for skip pauses state.
    rºzDebugger.setSkipAllPausesrcNr™)rºrergrr r rÚset_skip_all_pauses¥s þr»)Ú scope_numberÚ variable_namer´r7r ccsBtƒ}||d<||d<| ¡|d<| ¡|d<d|dœ}|V}dS)aÆ
    Changes value of variable in a callframe. Object-based scopes are not supported and must be
    mutated manually.
 
    :param scope_number: 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.
    :param variable_name: Variable name.
    :param new_value: New variable value.
    :param call_frame_id: Id of callframe that holds variable.
    Z scopeNumberZ variableNamerµrAzDebugger.setVariableValuercNrf)r¼r½r´r7rergrr r rÚset_variable_value¶s  þr¾)Úbreak_on_async_callr ccs*tƒ}|dk    r||d<d|dœ}|V}dS)zÌ
    Steps into the function call.
 
    :param break_on_async_call: **(EXPERIMENTAL)** *(Optional)* Debugger will pause on the execution of the first async task which was scheduled before next pause.
    NZbreakOnAsyncCallzDebugger.stepIntorcr™)r¿rergrr r rÚ    step_intoÑsþrÀccsddi}|V}dS)z)
    Steps out of the function call.
    rdzDebugger.stepOutNr rir r rÚstep_outãsÿrÁccsddi}|V}dS)z#
    Steps over the statement.
    rdzDebugger.stepOverNr rir r rÚ    step_overísÿrÂzDebugger.breakpointResolvedc@s6eZdZUdZded<ded<edddœdd    „ƒZd
S) ÚBreakpointResolvedzM
    Fired when breakpoint is resolved to an actual script and location.
    rrr%r9rrcCs |t |d¡t |d¡dS)Nrr9)rr9)rrr%rr r rrs  þzBreakpointResolved.from_jsonN©rrr r!r3r"rr r r rrÃ÷s
 
rÃzDebugger.pausedc@s^eZdZUdZded<ded<ded<ded    <d
ed <d ed <d ed<edddœdd„ƒZdS)ÚPausedzg
    Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
    ztyping.List[CallFrame]Ú call_framesr    Úreasonútyping.Optional[dict]Údataz!typing.Optional[typing.List[str]]Úhit_breakpointsú#typing.Optional[runtime.StackTrace]Úasync_stack_tracez%typing.Optional[runtime.StackTraceId]Úasync_stack_trace_idÚasync_call_stack_trace_idrrc Cs¢|dd„|dDƒt|dƒd|kr0t|dƒndd|krLdd„|dDƒndd|krftj |d¡ndd    |kr€tj |d    ¡ndd
|krštj |d
¡ndd S) NcSsg|]}t |¡‘qSr r’rDr r rrG"sz$Paused.from_json.<locals>.<listcomp>r“rÇrÉZhitBreakpointscSsg|] }t|ƒ‘qSr rarDr r rrG%sr”r•ZasyncCallStackTraceId)rÆrÇrÉrÊrÌrÍrÎ)r    r0rrŠrr–rr r rrs
ùzPaused.from_jsonNrÄr r r rrÅ
s
rÅzDebugger.resumedc@s$eZdZdZedddœdd„ƒZdS)ÚResumedz;
    Fired when the virtual machine resumed execution.
    rrcCs|ƒSr r rr r rr4szResumed.from_jsonN)rrr r!r"rr r r rrÏ,srÏzDebugger.scriptFailedToParsec@s¦eZdZUdZded<ded<ded<ded<ded    <ded
<d ed <ded <ded<ded<ded<ded<ded<ded<ded<ded<edddœdd„ƒZd S)!ÚScriptFailedToParsez?
    Fired when virtual machine fails to parse the script.
    r'r(r    r:r)Ú
start_lineÚ start_columnÚend_lineÚ
end_columnúruntime.ExecutionContextIdÚexecution_context_idÚhash_rÈÚexecution_context_aux_datarOÚsource_map_urlrmÚhas_source_urlÚ    is_moduler+ÚlengthrËÚ stack_traceÚ code_offsetú(typing.Optional[debugger.ScriptLanguage]Úscript_languagerrcCs|tj |d¡t|dƒt|dƒt|dƒt|dƒt|dƒtj |d¡t|dƒd    |krnt|d    ƒndd
|kr„t|d
ƒndd |kršt|d ƒndd |kr°t|d ƒndd |krÆt|d ƒndd|kràtj |d¡ndd|kröt|dƒndd|krt    j
 |d¡nddS)Nr-r:Ú    startLineÚ startColumnÚendLineÚ    endColumnÚexecutionContextIdÚhashÚexecutionContextAuxDataÚ sourceMapURLÚ hasSourceURLÚisModulerÜr‰Ú
codeOffsetÚscriptLanguage)r(r:rÑrÒrÓrÔrÖr×rØrÙrÚrÛrÜrÝrÞrà) rr2rr    r)ÚExecutionContextIdr0r¯rŠÚdebuggerr\rr r rrbs$
 
 
 
 
 
ðzScriptFailedToParse.from_jsonNrÄr r r rrÐ;s&
rÐzDebugger.scriptParsedc@s¶eZdZUdZded<ded<ded<ded<ded    <ded
<d ed <ded <ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<eddd œd!d"„ƒZd#S)$Ú ScriptParsedzŽ
    Fired when virtual machine parses script. This event is also fired for all known and uncollected
    scripts upon enabling debugger.
    r'r(r    r:r)rÑrÒrÓrÔrÕrÖr×rÈrØrmÚ is_live_editrOrÙrÚrÛr+rÜrËrÝrÞrßràz&typing.Optional[debugger.DebugSymbols]Ú debug_symbolsrrcCsN|tj |d¡t|dƒt|dƒt|dƒt|dƒt|dƒtj |d¡t|dƒd    |krnt|d    ƒndd
|kr„t|d
ƒndd |kršt|d ƒndd |kr°t|d ƒndd |krÆt|d ƒndd|krÜt|dƒndd|krötj |d¡ndd|krt|dƒndd|kr*t    j
 |d¡ndd|krFt    j  |d¡nddS)Nr-r:rárârãrärårærçZ
isLiveEditrèrérêrÜr‰rërìZ debugSymbols)r(r:rÑrÒrÓrÔrÖr×rØrðrÙrÚrÛrÜrÝrÞràrñ) rr2rr    r)rír0r¯rŠrîr\r^rr r rr¤s(
 
 
 
 
 
îzScriptParsed.from_jsonNrÄr r r rrïxs*
rï)N)N)NNNNNNN)N)NN)N)NN)N)NNNNN)N)N)N);Ú
__future__rÚutilrrZ dataclassesrÚenumÚtypingÚrr    rr$r%r4r6rKrWr[ÚEnumr\r^rhrjrlrzr|rr†r‡r‹rŒrŽr‘r—ršržr r¢r¤r¦r©r¬r®r±r³r¶r¹r»r¾rÀrÁrÂrÃrÅrÏrÐrïr r r rÚ<module>s¸   8+ þ ÿ÷";ý$ý
ÿüþú2þý&ÿ
 
  ;