pub struct SetBreakpointByUrlParams<'a> { /* private fields */ }Expand description
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.
Implementations§
Source§impl<'a> SetBreakpointByUrlParams<'a>
impl<'a> SetBreakpointByUrlParams<'a>
Sourcepub fn builder(line_number: i64) -> SetBreakpointByUrlParamsBuilder<'a>
pub fn builder(line_number: i64) -> SetBreakpointByUrlParamsBuilder<'a>
Creates a builder for this type with the required parameters:
line_number: Line number to set breakpoint at.
Sourcepub fn line_number(&self) -> i64
pub fn line_number(&self) -> i64
Line number to set breakpoint at.
Sourcepub fn url_regex(&self) -> Option<&str>
pub fn url_regex(&self) -> Option<&str>
Regex pattern for the URLs of the resources to set breakpoints on. Either ‘url’ or ‘urlRegex’ must be specified.
Sourcepub fn script_hash(&self) -> Option<&str>
pub fn script_hash(&self) -> Option<&str>
Script hash of the resources to set breakpoint on.
Sourcepub fn column_number(&self) -> Option<i64>
pub fn column_number(&self) -> Option<i64>
Offset in the line to set breakpoint at.
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for SetBreakpointByUrlParams<'a>
impl<'a> CdpCommand<'a> for SetBreakpointByUrlParams<'a>
Source§impl<'a> Clone for SetBreakpointByUrlParams<'a>
impl<'a> Clone for SetBreakpointByUrlParams<'a>
Source§fn clone(&self) -> SetBreakpointByUrlParams<'a>
fn clone(&self) -> SetBreakpointByUrlParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SetBreakpointByUrlParams<'a>
impl<'a> Debug for SetBreakpointByUrlParams<'a>
Source§impl<'a> Default for SetBreakpointByUrlParams<'a>
impl<'a> Default for SetBreakpointByUrlParams<'a>
Source§fn default() -> SetBreakpointByUrlParams<'a>
fn default() -> SetBreakpointByUrlParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for SetBreakpointByUrlParams<'a>
impl<'de, 'a> Deserialize<'de> for SetBreakpointByUrlParams<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for SetBreakpointByUrlParams<'a>
impl<'a> RefUnwindSafe for SetBreakpointByUrlParams<'a>
impl<'a> Send for SetBreakpointByUrlParams<'a>
impl<'a> Sync for SetBreakpointByUrlParams<'a>
impl<'a> Unpin for SetBreakpointByUrlParams<'a>
impl<'a> UnsafeUnpin for SetBreakpointByUrlParams<'a>
impl<'a> UnwindSafe for SetBreakpointByUrlParams<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more