parsek-cdp 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- parsek_cdp/__init__.py +55 -0
- parsek_cdp/_logging.py +49 -0
- parsek_cdp/cdp/__init__.py +247 -0
- parsek_cdp/cdp/accessibility/__init__.py +15 -0
- parsek_cdp/cdp/accessibility/events.py +35 -0
- parsek_cdp/cdp/accessibility/functions.py +202 -0
- parsek_cdp/cdp/accessibility/types.py +235 -0
- parsek_cdp/cdp/animation/__init__.py +15 -0
- parsek_cdp/cdp/animation/events.py +52 -0
- parsek_cdp/cdp/animation/functions.py +140 -0
- parsek_cdp/cdp/animation/types.py +113 -0
- parsek_cdp/cdp/audits/__init__.py +15 -0
- parsek_cdp/cdp/audits/events.py +21 -0
- parsek_cdp/cdp/audits/functions.py +95 -0
- parsek_cdp/cdp/audits/types.py +1051 -0
- parsek_cdp/cdp/autofill/__init__.py +15 -0
- parsek_cdp/cdp/autofill/events.py +27 -0
- parsek_cdp/cdp/autofill/functions.py +64 -0
- parsek_cdp/cdp/autofill/types.py +108 -0
- parsek_cdp/cdp/backgroundservice/__init__.py +15 -0
- parsek_cdp/cdp/backgroundservice/events.py +40 -0
- parsek_cdp/cdp/backgroundservice/functions.py +59 -0
- parsek_cdp/cdp/backgroundservice/types.py +63 -0
- parsek_cdp/cdp/bluetoothemulation/__init__.py +15 -0
- parsek_cdp/cdp/bluetoothemulation/events.py +70 -0
- parsek_cdp/cdp/bluetoothemulation/functions.py +247 -0
- parsek_cdp/cdp/bluetoothemulation/types.py +120 -0
- parsek_cdp/cdp/browser/__init__.py +15 -0
- parsek_cdp/cdp/browser/events.py +46 -0
- parsek_cdp/cdp/browser/functions.py +350 -0
- parsek_cdp/cdp/browser/types.py +158 -0
- parsek_cdp/cdp/cachestorage/__init__.py +15 -0
- parsek_cdp/cdp/cachestorage/events.py +13 -0
- parsek_cdp/cdp/cachestorage/functions.py +126 -0
- parsek_cdp/cdp/cachestorage/types.py +89 -0
- parsek_cdp/cdp/cast/__init__.py +15 -0
- parsek_cdp/cdp/cast/events.py +38 -0
- parsek_cdp/cdp/cast/functions.py +77 -0
- parsek_cdp/cdp/cast/types.py +23 -0
- parsek_cdp/cdp/console/__init__.py +15 -0
- parsek_cdp/cdp/console/events.py +22 -0
- parsek_cdp/cdp/console/functions.py +36 -0
- parsek_cdp/cdp/console/types.py +30 -0
- parsek_cdp/cdp/css/__init__.py +15 -0
- parsek_cdp/cdp/css/events.py +79 -0
- parsek_cdp/cdp/css/functions.py +788 -0
- parsek_cdp/cdp/css/types.py +742 -0
- parsek_cdp/cdp/debugger/__init__.py +15 -0
- parsek_cdp/cdp/debugger/events.py +164 -0
- parsek_cdp/cdp/debugger/functions.py +663 -0
- parsek_cdp/cdp/debugger/types.py +171 -0
- parsek_cdp/cdp/deviceaccess/__init__.py +15 -0
- parsek_cdp/cdp/deviceaccess/events.py +30 -0
- parsek_cdp/cdp/deviceaccess/functions.py +54 -0
- parsek_cdp/cdp/deviceaccess/types.py +28 -0
- parsek_cdp/cdp/deviceorientation/__init__.py +15 -0
- parsek_cdp/cdp/deviceorientation/events.py +13 -0
- parsek_cdp/cdp/deviceorientation/functions.py +35 -0
- parsek_cdp/cdp/deviceorientation/types.py +10 -0
- parsek_cdp/cdp/dom/__init__.py +15 -0
- parsek_cdp/cdp/dom/events.py +228 -0
- parsek_cdp/cdp/dom/functions.py +1033 -0
- parsek_cdp/cdp/dom/types.py +293 -0
- parsek_cdp/cdp/domdebugger/__init__.py +15 -0
- parsek_cdp/cdp/domdebugger/events.py +13 -0
- parsek_cdp/cdp/domdebugger/functions.py +155 -0
- parsek_cdp/cdp/domdebugger/types.py +57 -0
- parsek_cdp/cdp/domsnapshot/__init__.py +15 -0
- parsek_cdp/cdp/domsnapshot/events.py +13 -0
- parsek_cdp/cdp/domsnapshot/functions.py +111 -0
- parsek_cdp/cdp/domsnapshot/types.py +312 -0
- parsek_cdp/cdp/domstorage/__init__.py +15 -0
- parsek_cdp/cdp/domstorage/events.py +60 -0
- parsek_cdp/cdp/domstorage/functions.py +79 -0
- parsek_cdp/cdp/domstorage/types.py +30 -0
- parsek_cdp/cdp/emulation/__init__.py +15 -0
- parsek_cdp/cdp/emulation/events.py +17 -0
- parsek_cdp/cdp/emulation/functions.py +688 -0
- parsek_cdp/cdp/emulation/types.py +305 -0
- parsek_cdp/cdp/eventbreakpoints/__init__.py +15 -0
- parsek_cdp/cdp/eventbreakpoints/events.py +13 -0
- parsek_cdp/cdp/eventbreakpoints/functions.py +41 -0
- parsek_cdp/cdp/eventbreakpoints/types.py +10 -0
- parsek_cdp/cdp/extensions/__init__.py +15 -0
- parsek_cdp/cdp/extensions/events.py +13 -0
- parsek_cdp/cdp/extensions/functions.py +118 -0
- parsek_cdp/cdp/extensions/types.py +19 -0
- parsek_cdp/cdp/fedcm/__init__.py +15 -0
- parsek_cdp/cdp/fedcm/events.py +45 -0
- parsek_cdp/cdp/fedcm/functions.py +93 -0
- parsek_cdp/cdp/fedcm/types.py +72 -0
- parsek_cdp/cdp/fetch/__init__.py +15 -0
- parsek_cdp/cdp/fetch/events.py +82 -0
- parsek_cdp/cdp/fetch/functions.py +215 -0
- parsek_cdp/cdp/fetch/types.py +81 -0
- parsek_cdp/cdp/filesystem/__init__.py +15 -0
- parsek_cdp/cdp/filesystem/events.py +13 -0
- parsek_cdp/cdp/filesystem/functions.py +36 -0
- parsek_cdp/cdp/filesystem/types.py +54 -0
- parsek_cdp/cdp/headlessexperimental/__init__.py +15 -0
- parsek_cdp/cdp/headlessexperimental/events.py +13 -0
- parsek_cdp/cdp/headlessexperimental/functions.py +77 -0
- parsek_cdp/cdp/headlessexperimental/types.py +24 -0
- parsek_cdp/cdp/heapprofiler/__init__.py +15 -0
- parsek_cdp/cdp/heapprofiler/events.py +65 -0
- parsek_cdp/cdp/heapprofiler/functions.py +193 -0
- parsek_cdp/cdp/heapprofiler/types.py +57 -0
- parsek_cdp/cdp/indexeddb/__init__.py +15 -0
- parsek_cdp/cdp/indexeddb/events.py +13 -0
- parsek_cdp/cdp/indexeddb/functions.py +232 -0
- parsek_cdp/cdp/indexeddb/types.py +120 -0
- parsek_cdp/cdp/input/__init__.py +15 -0
- parsek_cdp/cdp/input/events.py +25 -0
- parsek_cdp/cdp/input/functions.py +361 -0
- parsek_cdp/cdp/input/types.py +87 -0
- parsek_cdp/cdp/inspector/__init__.py +15 -0
- parsek_cdp/cdp/inspector/events.py +41 -0
- parsek_cdp/cdp/inspector/functions.py +27 -0
- parsek_cdp/cdp/inspector/types.py +10 -0
- parsek_cdp/cdp/io/__init__.py +15 -0
- parsek_cdp/cdp/io/events.py +13 -0
- parsek_cdp/cdp/io/functions.py +77 -0
- parsek_cdp/cdp/io/types.py +13 -0
- parsek_cdp/cdp/layertree/__init__.py +15 -0
- parsek_cdp/cdp/layertree/events.py +36 -0
- parsek_cdp/cdp/layertree/functions.py +178 -0
- parsek_cdp/cdp/layertree/types.py +104 -0
- parsek_cdp/cdp/log/__init__.py +15 -0
- parsek_cdp/cdp/log/events.py +22 -0
- parsek_cdp/cdp/log/functions.py +54 -0
- parsek_cdp/cdp/log/types.py +57 -0
- parsek_cdp/cdp/media/__init__.py +15 -0
- parsek_cdp/cdp/media/events.py +87 -0
- parsek_cdp/cdp/media/functions.py +27 -0
- parsek_cdp/cdp/media/types.py +101 -0
- parsek_cdp/cdp/memory/__init__.py +15 -0
- parsek_cdp/cdp/memory/events.py +13 -0
- parsek_cdp/cdp/memory/functions.py +164 -0
- parsek_cdp/cdp/memory/types.py +71 -0
- parsek_cdp/cdp/mixins/__init__.py +21 -0
- parsek_cdp/cdp/mixins/datatype.py +123 -0
- parsek_cdp/cdp/mixins/event.py +78 -0
- parsek_cdp/cdp/mixins/namespace.py +31 -0
- parsek_cdp/cdp/network/__init__.py +15 -0
- parsek_cdp/cdp/network/events.py +726 -0
- parsek_cdp/cdp/network/functions.py +734 -0
- parsek_cdp/cdp/network/types.py +1247 -0
- parsek_cdp/cdp/overlay/__init__.py +15 -0
- parsek_cdp/cdp/overlay/events.py +54 -0
- parsek_cdp/cdp/overlay/functions.py +407 -0
- parsek_cdp/cdp/overlay/types.py +328 -0
- parsek_cdp/cdp/page/__init__.py +15 -0
- parsek_cdp/cdp/page/events.py +416 -0
- parsek_cdp/cdp/page/functions.py +1081 -0
- parsek_cdp/cdp/page/types.py +1088 -0
- parsek_cdp/cdp/performance/__init__.py +15 -0
- parsek_cdp/cdp/performance/events.py +24 -0
- parsek_cdp/cdp/performance/functions.py +63 -0
- parsek_cdp/cdp/performance/types.py +22 -0
- parsek_cdp/cdp/performancetimeline/__init__.py +15 -0
- parsek_cdp/cdp/performancetimeline/events.py +22 -0
- parsek_cdp/cdp/performancetimeline/functions.py +30 -0
- parsek_cdp/cdp/performancetimeline/types.py +85 -0
- parsek_cdp/cdp/preload/__init__.py +15 -0
- parsek_cdp/cdp/preload/events.py +116 -0
- parsek_cdp/cdp/preload/functions.py +25 -0
- parsek_cdp/cdp/preload/types.py +267 -0
- parsek_cdp/cdp/profiler/__init__.py +15 -0
- parsek_cdp/cdp/profiler/events.py +64 -0
- parsek_cdp/cdp/profiler/functions.py +134 -0
- parsek_cdp/cdp/profiler/types.py +105 -0
- parsek_cdp/cdp/pwa/__init__.py +15 -0
- parsek_cdp/cdp/pwa/events.py +13 -0
- parsek_cdp/cdp/pwa/functions.py +196 -0
- parsek_cdp/cdp/pwa/types.py +45 -0
- parsek_cdp/cdp/runtime/__init__.py +15 -0
- parsek_cdp/cdp/runtime/events.py +123 -0
- parsek_cdp/cdp/runtime/functions.py +552 -0
- parsek_cdp/cdp/runtime/types.py +319 -0
- parsek_cdp/cdp/schema/__init__.py +15 -0
- parsek_cdp/cdp/schema/events.py +13 -0
- parsek_cdp/cdp/schema/functions.py +32 -0
- parsek_cdp/cdp/schema/types.py +22 -0
- parsek_cdp/cdp/security/__init__.py +15 -0
- parsek_cdp/cdp/security/events.py +64 -0
- parsek_cdp/cdp/security/functions.py +66 -0
- parsek_cdp/cdp/security/types.py +168 -0
- parsek_cdp/cdp/serviceworker/__init__.py +15 -0
- parsek_cdp/cdp/serviceworker/events.py +43 -0
- parsek_cdp/cdp/serviceworker/functions.py +115 -0
- parsek_cdp/cdp/serviceworker/types.py +95 -0
- parsek_cdp/cdp/storage/__init__.py +15 -0
- parsek_cdp/cdp/storage/events.py +288 -0
- parsek_cdp/cdp/storage/functions.py +571 -0
- parsek_cdp/cdp/storage/types.py +656 -0
- parsek_cdp/cdp/systeminfo/__init__.py +15 -0
- parsek_cdp/cdp/systeminfo/events.py +13 -0
- parsek_cdp/cdp/systeminfo/functions.py +75 -0
- parsek_cdp/cdp/systeminfo/types.py +132 -0
- parsek_cdp/cdp/target/__init__.py +15 -0
- parsek_cdp/cdp/target/events.py +109 -0
- parsek_cdp/cdp/target/functions.py +424 -0
- parsek_cdp/cdp/target/types.py +83 -0
- parsek_cdp/cdp/tethering/__init__.py +15 -0
- parsek_cdp/cdp/tethering/events.py +22 -0
- parsek_cdp/cdp/tethering/functions.py +35 -0
- parsek_cdp/cdp/tethering/types.py +10 -0
- parsek_cdp/cdp/tracing/__init__.py +15 -0
- parsek_cdp/cdp/tracing/events.py +61 -0
- parsek_cdp/cdp/tracing/functions.py +119 -0
- parsek_cdp/cdp/tracing/types.py +81 -0
- parsek_cdp/cdp/webaudio/__init__.py +15 -0
- parsek_cdp/cdp/webaudio/events.py +184 -0
- parsek_cdp/cdp/webaudio/functions.py +51 -0
- parsek_cdp/cdp/webaudio/types.py +155 -0
- parsek_cdp/cdp/webauthn/__init__.py +15 -0
- parsek_cdp/cdp/webauthn/events.py +69 -0
- parsek_cdp/cdp/webauthn/functions.py +214 -0
- parsek_cdp/cdp/webauthn/types.py +96 -0
- parsek_cdp/core/__init__.py +18 -0
- parsek_cdp/core/browser.py +240 -0
- parsek_cdp/core/browser_context.py +58 -0
- parsek_cdp/core/element.py +405 -0
- parsek_cdp/core/feature.py +376 -0
- parsek_cdp/core/frame.py +351 -0
- parsek_cdp/core/pagable.py +175 -0
- parsek_cdp/core/page.py +163 -0
- parsek_cdp/core/target.py +490 -0
- parsek_cdp/features/__init__.py +14 -0
- parsek_cdp/features/request_listener/__init__.py +256 -0
- parsek_cdp/features/request_listener/events.py +48 -0
- parsek_cdp/features/request_listener/types.py +235 -0
- parsek_cdp/generate.py +642 -0
- parsek_cdp/parsek/__init__.py +18 -0
- parsek_cdp/parsek/events.py +38 -0
- parsek_cdp/parsek/types.py +36 -0
- parsek_cdp/py.typed +0 -0
- parsek_cdp-0.1.0.dist-info/METADATA +277 -0
- parsek_cdp-0.1.0.dist-info/RECORD +242 -0
- parsek_cdp-0.1.0.dist-info/WHEEL +5 -0
- parsek_cdp-0.1.0.dist-info/licenses/LICENSE +201 -0
- parsek_cdp-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""The Debugger CDP domain (generated).
|
|
2
|
+
|
|
3
|
+
Importing ``Debugger`` from ``parsek_cdp.cdp`` gives a namespace with this
|
|
4
|
+
domain's events and types as attributes (``Debugger.SomeEvent`` /
|
|
5
|
+
``Debugger.SomeType``); commands run on a target via ``page.cdp.Debugger``.
|
|
6
|
+
"""
|
|
7
|
+
from . import events, functions, types
|
|
8
|
+
from .functions import Debugger
|
|
9
|
+
from .events import * # noqa: F401,F403 -- expose events on the namespace
|
|
10
|
+
from .types import * # noqa: F401,F403 -- expose types on the namespace
|
|
11
|
+
|
|
12
|
+
#: Protocol domain name (used by features that declare ``domains=(Debugger,)``).
|
|
13
|
+
DOMAIN = "Debugger"
|
|
14
|
+
|
|
15
|
+
__all__ = ["events", "functions", "types", "Debugger", "DOMAIN"]
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
"""Events for the Debugger domain (generated)."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass
|
|
5
|
+
from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Literal, Optional
|
|
6
|
+
|
|
7
|
+
from ..mixins.datatype import FieldMeta
|
|
8
|
+
from ..mixins.event import Event, register_event
|
|
9
|
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from .types import (
|
|
12
|
+
BreakpointId,
|
|
13
|
+
CallFrame,
|
|
14
|
+
DebugSymbols,
|
|
15
|
+
Location,
|
|
16
|
+
ResolvedBreakpoint,
|
|
17
|
+
ScriptLanguage,
|
|
18
|
+
)
|
|
19
|
+
from ..runtime.types import ExecutionContextId as Runtime_ExecutionContextId
|
|
20
|
+
from ..runtime.types import ScriptId as Runtime_ScriptId
|
|
21
|
+
from ..runtime.types import StackTrace as Runtime_StackTrace
|
|
22
|
+
from ..runtime.types import StackTraceId as Runtime_StackTraceId
|
|
23
|
+
|
|
24
|
+
@register_event("Debugger.breakpointResolved")
|
|
25
|
+
@dataclass
|
|
26
|
+
class BreakpointResolved(Event):
|
|
27
|
+
"""
|
|
28
|
+
Fired when breakpoint is resolved to an actual script and location.
|
|
29
|
+
Deprecated in favor of `resolvedBreakpoints` in the `scriptParsed` event.
|
|
30
|
+
"""
|
|
31
|
+
breakpoint_id: BreakpointId
|
|
32
|
+
location: Location
|
|
33
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
34
|
+
FieldMeta('breakpoint_id', 'breakpointId', False, 'primitive'),
|
|
35
|
+
FieldMeta('location', 'location', False, 'object', ref='Debugger.Location'),
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@register_event("Debugger.paused")
|
|
40
|
+
@dataclass
|
|
41
|
+
class Paused(Event):
|
|
42
|
+
"""Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria."""
|
|
43
|
+
call_frames: List[CallFrame]
|
|
44
|
+
reason: Literal['ambiguous', 'assert', 'CSPViolation', 'debugCommand', 'DOM', 'EventListener', 'exception', 'instrumentation', 'OOM', 'other', 'promiseRejection', 'XHR', 'step']
|
|
45
|
+
data: Optional[Dict[str, Any]] = None
|
|
46
|
+
hit_breakpoints: Optional[List[str]] = None
|
|
47
|
+
async_stack_trace: Optional[Runtime_StackTrace] = None
|
|
48
|
+
async_stack_trace_id: Optional[Runtime_StackTraceId] = None
|
|
49
|
+
async_call_stack_trace_id: Optional[Runtime_StackTraceId] = None
|
|
50
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
51
|
+
FieldMeta('call_frames', 'callFrames', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Debugger.CallFrame')),
|
|
52
|
+
FieldMeta('reason', 'reason', False, 'primitive'),
|
|
53
|
+
FieldMeta('data', 'data', True, 'primitive'),
|
|
54
|
+
FieldMeta('hit_breakpoints', 'hitBreakpoints', True, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
55
|
+
FieldMeta('async_stack_trace', 'asyncStackTrace', True, 'object', ref='Runtime.StackTrace'),
|
|
56
|
+
FieldMeta('async_stack_trace_id', 'asyncStackTraceId', True, 'object', ref='Runtime.StackTraceId'),
|
|
57
|
+
FieldMeta('async_call_stack_trace_id', 'asyncCallStackTraceId', True, 'object', ref='Runtime.StackTraceId'),
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
@register_event("Debugger.resumed")
|
|
62
|
+
@dataclass
|
|
63
|
+
class Resumed(Event):
|
|
64
|
+
"""Fired when the virtual machine resumed execution."""
|
|
65
|
+
__FIELDS__: ClassVar[tuple] = ()
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
@register_event("Debugger.scriptFailedToParse")
|
|
69
|
+
@dataclass
|
|
70
|
+
class ScriptFailedToParse(Event):
|
|
71
|
+
"""Fired when virtual machine fails to parse the script."""
|
|
72
|
+
script_id: Runtime_ScriptId
|
|
73
|
+
url: str
|
|
74
|
+
start_line: int
|
|
75
|
+
start_column: int
|
|
76
|
+
end_line: int
|
|
77
|
+
end_column: int
|
|
78
|
+
execution_context_id: Runtime_ExecutionContextId
|
|
79
|
+
hash: str
|
|
80
|
+
build_id: str
|
|
81
|
+
execution_context_aux_data: Optional[Dict[str, Any]] = None
|
|
82
|
+
source_map_url: Optional[str] = None
|
|
83
|
+
has_source_url: Optional[bool] = None
|
|
84
|
+
is_module: Optional[bool] = None
|
|
85
|
+
length: Optional[int] = None
|
|
86
|
+
stack_trace: Optional[Runtime_StackTrace] = None
|
|
87
|
+
code_offset: Optional[int] = None
|
|
88
|
+
script_language: Optional[ScriptLanguage] = None
|
|
89
|
+
embedder_name: Optional[str] = None
|
|
90
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
91
|
+
FieldMeta('script_id', 'scriptId', False, 'primitive'),
|
|
92
|
+
FieldMeta('url', 'url', False, 'primitive'),
|
|
93
|
+
FieldMeta('start_line', 'startLine', False, 'primitive'),
|
|
94
|
+
FieldMeta('start_column', 'startColumn', False, 'primitive'),
|
|
95
|
+
FieldMeta('end_line', 'endLine', False, 'primitive'),
|
|
96
|
+
FieldMeta('end_column', 'endColumn', False, 'primitive'),
|
|
97
|
+
FieldMeta('execution_context_id', 'executionContextId', False, 'primitive'),
|
|
98
|
+
FieldMeta('hash', 'hash', False, 'primitive'),
|
|
99
|
+
FieldMeta('build_id', 'buildId', False, 'primitive'),
|
|
100
|
+
FieldMeta('execution_context_aux_data', 'executionContextAuxData', True, 'primitive'),
|
|
101
|
+
FieldMeta('source_map_url', 'sourceMapURL', True, 'primitive'),
|
|
102
|
+
FieldMeta('has_source_url', 'hasSourceURL', True, 'primitive'),
|
|
103
|
+
FieldMeta('is_module', 'isModule', True, 'primitive'),
|
|
104
|
+
FieldMeta('length', 'length', True, 'primitive'),
|
|
105
|
+
FieldMeta('stack_trace', 'stackTrace', True, 'object', ref='Runtime.StackTrace'),
|
|
106
|
+
FieldMeta('code_offset', 'codeOffset', True, 'primitive'),
|
|
107
|
+
FieldMeta('script_language', 'scriptLanguage', True, 'enum', ref='Debugger.ScriptLanguage'),
|
|
108
|
+
FieldMeta('embedder_name', 'embedderName', True, 'primitive'),
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
@register_event("Debugger.scriptParsed")
|
|
113
|
+
@dataclass
|
|
114
|
+
class ScriptParsed(Event):
|
|
115
|
+
"""
|
|
116
|
+
Fired when virtual machine parses script. This event is also fired for all known and uncollected
|
|
117
|
+
scripts upon enabling debugger.
|
|
118
|
+
"""
|
|
119
|
+
script_id: Runtime_ScriptId
|
|
120
|
+
url: str
|
|
121
|
+
start_line: int
|
|
122
|
+
start_column: int
|
|
123
|
+
end_line: int
|
|
124
|
+
end_column: int
|
|
125
|
+
execution_context_id: Runtime_ExecutionContextId
|
|
126
|
+
hash: str
|
|
127
|
+
build_id: str
|
|
128
|
+
execution_context_aux_data: Optional[Dict[str, Any]] = None
|
|
129
|
+
is_live_edit: Optional[bool] = None
|
|
130
|
+
source_map_url: Optional[str] = None
|
|
131
|
+
has_source_url: Optional[bool] = None
|
|
132
|
+
is_module: Optional[bool] = None
|
|
133
|
+
length: Optional[int] = None
|
|
134
|
+
stack_trace: Optional[Runtime_StackTrace] = None
|
|
135
|
+
code_offset: Optional[int] = None
|
|
136
|
+
script_language: Optional[ScriptLanguage] = None
|
|
137
|
+
debug_symbols: Optional[List[DebugSymbols]] = None
|
|
138
|
+
embedder_name: Optional[str] = None
|
|
139
|
+
resolved_breakpoints: Optional[List[ResolvedBreakpoint]] = None
|
|
140
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
141
|
+
FieldMeta('script_id', 'scriptId', False, 'primitive'),
|
|
142
|
+
FieldMeta('url', 'url', False, 'primitive'),
|
|
143
|
+
FieldMeta('start_line', 'startLine', False, 'primitive'),
|
|
144
|
+
FieldMeta('start_column', 'startColumn', False, 'primitive'),
|
|
145
|
+
FieldMeta('end_line', 'endLine', False, 'primitive'),
|
|
146
|
+
FieldMeta('end_column', 'endColumn', False, 'primitive'),
|
|
147
|
+
FieldMeta('execution_context_id', 'executionContextId', False, 'primitive'),
|
|
148
|
+
FieldMeta('hash', 'hash', False, 'primitive'),
|
|
149
|
+
FieldMeta('build_id', 'buildId', False, 'primitive'),
|
|
150
|
+
FieldMeta('execution_context_aux_data', 'executionContextAuxData', True, 'primitive'),
|
|
151
|
+
FieldMeta('is_live_edit', 'isLiveEdit', True, 'primitive'),
|
|
152
|
+
FieldMeta('source_map_url', 'sourceMapURL', True, 'primitive'),
|
|
153
|
+
FieldMeta('has_source_url', 'hasSourceURL', True, 'primitive'),
|
|
154
|
+
FieldMeta('is_module', 'isModule', True, 'primitive'),
|
|
155
|
+
FieldMeta('length', 'length', True, 'primitive'),
|
|
156
|
+
FieldMeta('stack_trace', 'stackTrace', True, 'object', ref='Runtime.StackTrace'),
|
|
157
|
+
FieldMeta('code_offset', 'codeOffset', True, 'primitive'),
|
|
158
|
+
FieldMeta('script_language', 'scriptLanguage', True, 'enum', ref='Debugger.ScriptLanguage'),
|
|
159
|
+
FieldMeta('debug_symbols', 'debugSymbols', True, 'array', inner=FieldMeta('', '', False, 'object', ref='Debugger.DebugSymbols')),
|
|
160
|
+
FieldMeta('embedder_name', 'embedderName', True, 'primitive'),
|
|
161
|
+
FieldMeta('resolved_breakpoints', 'resolvedBreakpoints', True, 'array', inner=FieldMeta('', '', False, 'object', ref='Debugger.ResolvedBreakpoint')),
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
__all__ = ["BreakpointResolved", "Paused", "Resumed", "ScriptFailedToParse", "ScriptParsed"]
|