Skip to main content

browser_protocol/eventbreakpoints/
mod.rs

1//! EventBreakpoints permits setting JavaScript breakpoints on operations and events
2//! occurring in native code invoked from JavaScript. Once breakpoint is hit, it is
3//! reported through Debugger domain, similarly to regular breakpoints being hit.
4
5use serde::{Serialize, Deserialize};
6
7/// Sets breakpoint on particular native event.
8
9#[derive(Debug, Clone, Serialize, Deserialize, Default)]
10#[serde(rename_all = "camelCase")]
11pub struct SetInstrumentationBreakpointParams {
12    /// Instrumentation name to stop on.
13
14    pub eventName: String,
15}
16
17/// Removes breakpoint on particular native event.
18
19#[derive(Debug, Clone, Serialize, Deserialize, Default)]
20#[serde(rename_all = "camelCase")]
21pub struct RemoveInstrumentationBreakpointParams {
22    /// Instrumentation name to stop on.
23
24    pub eventName: String,
25}