Skip to content

event_breakpoints

disable()

Removes all breakpoints

Source code in zendriver/cdp/event_breakpoints.py
def disable() -> typing.Generator[T_JSON_DICT, T_JSON_DICT, None]:
    """
    Removes all breakpoints
    """
    cmd_dict: T_JSON_DICT = {
        "method": "EventBreakpoints.disable",
    }
    json = yield cmd_dict

remove_instrumentation_breakpoint(event_name)

Removes breakpoint on particular native event.

Parameters:

Name Type Description Default
event_name str

Instrumentation name to stop on.

required
Source code in zendriver/cdp/event_breakpoints.py
def remove_instrumentation_breakpoint(
    event_name: str,
) -> typing.Generator[T_JSON_DICT, T_JSON_DICT, None]:
    """
    Removes breakpoint on particular native event.

    :param event_name: Instrumentation name to stop on.
    """
    params: T_JSON_DICT = dict()
    params["eventName"] = event_name
    cmd_dict: T_JSON_DICT = {
        "method": "EventBreakpoints.removeInstrumentationBreakpoint",
        "params": params,
    }
    json = yield cmd_dict

set_instrumentation_breakpoint(event_name)

Sets breakpoint on particular native event.

Parameters:

Name Type Description Default
event_name str

Instrumentation name to stop on.

required
Source code in zendriver/cdp/event_breakpoints.py
def set_instrumentation_breakpoint(
    event_name: str,
) -> typing.Generator[T_JSON_DICT, T_JSON_DICT, None]:
    """
    Sets breakpoint on particular native event.

    :param event_name: Instrumentation name to stop on.
    """
    params: T_JSON_DICT = dict()
    params["eventName"] = event_name
    cmd_dict: T_JSON_DICT = {
        "method": "EventBreakpoints.setInstrumentationBreakpoint",
        "params": params,
    }
    json = yield cmd_dict