pub struct SetBreakpointByUrlParams {
pub line_number: i64,
pub url: Option<String>,
pub url_regex: Option<String>,
pub script_hash: Option<String>,
pub column_number: Option<i64>,
pub condition: Option<String>,
}
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.
setBreakpointByUrl
Fields§
§line_number: i64
Line number to set breakpoint at.
url: Option<String>
URL of the resources to set breakpoint on.
url_regex: Option<String>
Regex pattern for the URLs of the resources to set breakpoints on. Either url
or
urlRegex
must be specified.
script_hash: Option<String>
Script hash of the resources to set breakpoint on.
column_number: Option<i64>
Offset in the line to set breakpoint at.
condition: Option<String>
Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
Implementations§
Source§impl SetBreakpointByUrlParams
impl SetBreakpointByUrlParams
pub fn new(line_number: impl Into<i64>) -> SetBreakpointByUrlParams
Source§impl SetBreakpointByUrlParams
impl SetBreakpointByUrlParams
pub const IDENTIFIER: &'static str = "Debugger.setBreakpointByUrl"
Trait Implementations§
Source§impl Clone for SetBreakpointByUrlParams
impl Clone for SetBreakpointByUrlParams
Source§fn clone(&self) -> SetBreakpointByUrlParams
fn clone(&self) -> SetBreakpointByUrlParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Command for SetBreakpointByUrlParams
impl Command for SetBreakpointByUrlParams
Source§impl Debug for SetBreakpointByUrlParams
impl Debug for SetBreakpointByUrlParams
Source§impl<'de> Deserialize<'de> for SetBreakpointByUrlParams
impl<'de> Deserialize<'de> for SetBreakpointByUrlParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetBreakpointByUrlParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetBreakpointByUrlParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Method for SetBreakpointByUrlParams
impl Method for SetBreakpointByUrlParams
Source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
DOM.removeNode
Source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
DOM
Source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
removeNode
Source§impl PartialEq for SetBreakpointByUrlParams
impl PartialEq for SetBreakpointByUrlParams
Source§impl Serialize for SetBreakpointByUrlParams
impl Serialize for SetBreakpointByUrlParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for SetBreakpointByUrlParams
Auto Trait Implementations§
impl Freeze for SetBreakpointByUrlParams
impl RefUnwindSafe for SetBreakpointByUrlParams
impl Send for SetBreakpointByUrlParams
impl Sync for SetBreakpointByUrlParams
impl Unpin for SetBreakpointByUrlParams
impl UnwindSafe for SetBreakpointByUrlParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more