You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
1.7 KiB
Python
77 lines
1.7 KiB
Python
# DO NOT EDIT THIS FILE!
|
|
#
|
|
# This file is generated from the CDP specification. If you need to make
|
|
# changes, edit the generator and regenerate all of the modules.
|
|
#
|
|
# CDP domain: Inspector (experimental)
|
|
from __future__ import annotations
|
|
from .util import event_class, T_JSON_DICT
|
|
from dataclasses import dataclass
|
|
import enum
|
|
import typing
|
|
|
|
def disable() -> typing.Generator[T_JSON_DICT,T_JSON_DICT,None]:
|
|
'''
|
|
Disables inspector domain notifications.
|
|
'''
|
|
cmd_dict: T_JSON_DICT = {
|
|
'method': 'Inspector.disable',
|
|
}
|
|
json = yield cmd_dict
|
|
|
|
|
|
def enable() -> typing.Generator[T_JSON_DICT,T_JSON_DICT,None]:
|
|
'''
|
|
Enables inspector domain notifications.
|
|
'''
|
|
cmd_dict: T_JSON_DICT = {
|
|
'method': 'Inspector.enable',
|
|
}
|
|
json = yield cmd_dict
|
|
|
|
|
|
@event_class('Inspector.detached')
|
|
@dataclass
|
|
class Detached:
|
|
'''
|
|
Fired when remote debugging connection is about to be terminated. Contains detach reason.
|
|
'''
|
|
#: The reason why connection has been terminated.
|
|
reason: str
|
|
|
|
@classmethod
|
|
def from_json(cls, json: T_JSON_DICT) -> Detached:
|
|
return cls(
|
|
reason=str(json['reason'])
|
|
)
|
|
|
|
|
|
@event_class('Inspector.targetCrashed')
|
|
@dataclass
|
|
class TargetCrashed:
|
|
'''
|
|
Fired when debugging target has crashed
|
|
'''
|
|
|
|
|
|
@classmethod
|
|
def from_json(cls, json: T_JSON_DICT) -> TargetCrashed:
|
|
return cls(
|
|
|
|
)
|
|
|
|
|
|
@event_class('Inspector.targetReloadedAfterCrash')
|
|
@dataclass
|
|
class TargetReloadedAfterCrash:
|
|
'''
|
|
Fired when debugging target has reloaded after crash
|
|
'''
|
|
|
|
|
|
@classmethod
|
|
def from_json(cls, json: T_JSON_DICT) -> TargetReloadedAfterCrash:
|
|
return cls(
|
|
|
|
)
|