pub struct SetBreakpointByUrlCommand { /* private fields */ }Available on crate features
Debugger and Runtime only.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 SetBreakpointByUrlCommand
impl SetBreakpointByUrlCommand
pub fn builder() -> SetBreakpointByUrlCommandBuilder
Sourcepub fn line_number(&self) -> u32
pub fn line_number(&self) -> u32
Line number to set breakpoint at.
Sourcepub fn url_regex(&self) -> Option<&String>
pub fn url_regex(&self) -> Option<&String>
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<&String>
pub fn script_hash(&self) -> Option<&String>
Script hash of the resources to set breakpoint on.
Sourcepub fn column_number(&self) -> Option<&u32>
pub fn column_number(&self) -> Option<&u32>
Offset in the line to set breakpoint at.
Trait Implementations§
Source§impl Clone for SetBreakpointByUrlCommand
impl Clone for SetBreakpointByUrlCommand
Source§fn clone(&self) -> SetBreakpointByUrlCommand
fn clone(&self) -> SetBreakpointByUrlCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Command for SetBreakpointByUrlCommand
impl Command for SetBreakpointByUrlCommand
Source§impl Debug for SetBreakpointByUrlCommand
impl Debug for SetBreakpointByUrlCommand
Source§impl<'de> Deserialize<'de> for SetBreakpointByUrlCommand
impl<'de> Deserialize<'de> for SetBreakpointByUrlCommand
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 Freeze for SetBreakpointByUrlCommand
impl RefUnwindSafe for SetBreakpointByUrlCommand
impl Send for SetBreakpointByUrlCommand
impl Sync for SetBreakpointByUrlCommand
impl Unpin for SetBreakpointByUrlCommand
impl UnwindSafe for SetBreakpointByUrlCommand
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