pub struct SourceBreakpoint {
pub line: i32,
pub column: Option<i32>,
pub condition: Option<String>,
pub hit_condition: Option<String>,
pub log_message: Option<String>,
/* private fields */
}
Expand description
Properties of a breakpoint or logpoint passed to the setBreakpoints request.
Fields§
§line: i32
The source line of the breakpoint or logpoint.
column: Option<i32>
An optional source column of the breakpoint.
condition: Option<String>
An optional expression for conditional breakpoints.
It is only honored by a debug adapter if the capability ‘supportsConditionalBreakpoints’ is true.
hit_condition: Option<String>
An optional expression that controls how many hits of the breakpoint are ignored.
The backend is expected to interpret the expression as needed.
The attribute is only honored by a debug adapter if the capability ‘supportsHitConditionalBreakpoints’ is true.
log_message: Option<String>
If this attribute exists and is non-empty, the backend must not ‘break’ (stop)
but log the message instead. Expressions within {} are interpolated.
The attribute is only honored by a debug adapter if the capability ‘supportsLogPoints’ is true.
Implementations§
Source§impl SourceBreakpoint
impl SourceBreakpoint
Sourcepub fn builder() -> SourceBreakpointBuilder<((), (), (), (), ())>
pub fn builder() -> SourceBreakpointBuilder<((), (), (), (), ())>
Create a builder for building SourceBreakpoint
.
On the builder, call .line(...)
, .column(...)
(optional), .condition(...)
(optional), .hit_condition(...)
(optional), .log_message(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of SourceBreakpoint
.
Trait Implementations§
Source§impl Clone for SourceBreakpoint
impl Clone for SourceBreakpoint
Source§fn clone(&self) -> SourceBreakpoint
fn clone(&self) -> SourceBreakpoint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SourceBreakpoint
impl Debug for SourceBreakpoint
Source§impl<'de> Deserialize<'de> for SourceBreakpoint
impl<'de> Deserialize<'de> for SourceBreakpoint
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>,
Source§impl PartialEq for SourceBreakpoint
impl PartialEq for SourceBreakpoint
Source§impl Serialize for SourceBreakpoint
impl Serialize for SourceBreakpoint
impl Eq for SourceBreakpoint
impl StructuralPartialEq for SourceBreakpoint
Auto Trait Implementations§
impl Freeze for SourceBreakpoint
impl RefUnwindSafe for SourceBreakpoint
impl Send for SourceBreakpoint
impl Sync for SourceBreakpoint
impl Unpin for SourceBreakpoint
impl UnwindSafe for SourceBreakpoint
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.