pub struct InstructionBreakpoint {
pub instruction_reference: String,
pub offset: Option<i32>,
pub condition: Option<String>,
pub hit_condition: Option<String>,
/* private fields */
}
Expand description
Properties of a breakpoint passed to the setInstructionBreakpoints request
Fields§
§instruction_reference: String
The instruction reference of the breakpoint.
This should be a memory or instruction pointer reference from an EvaluateResponse, Variable, StackFrame, GotoTarget, or Breakpoint.
offset: Option<i32>
An optional offset from the instruction reference.
This can be negative.
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.
Implementations§
Source§impl InstructionBreakpoint
impl InstructionBreakpoint
Sourcepub fn builder() -> InstructionBreakpointBuilder<((), (), (), ())>
pub fn builder() -> InstructionBreakpointBuilder<((), (), (), ())>
Create a builder for building InstructionBreakpoint
.
On the builder, call .instruction_reference(...)
, .offset(...)
(optional), .condition(...)
(optional), .hit_condition(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InstructionBreakpoint
.
Trait Implementations§
Source§impl Clone for InstructionBreakpoint
impl Clone for InstructionBreakpoint
Source§fn clone(&self) -> InstructionBreakpoint
fn clone(&self) -> InstructionBreakpoint
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InstructionBreakpoint
impl Debug for InstructionBreakpoint
Source§impl<'de> Deserialize<'de> for InstructionBreakpoint
impl<'de> Deserialize<'de> for InstructionBreakpoint
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 InstructionBreakpoint
impl PartialEq for InstructionBreakpoint
Source§impl Serialize for InstructionBreakpoint
impl Serialize for InstructionBreakpoint
impl Eq for InstructionBreakpoint
impl StructuralPartialEq for InstructionBreakpoint
Auto Trait Implementations§
impl Freeze for InstructionBreakpoint
impl RefUnwindSafe for InstructionBreakpoint
impl Send for InstructionBreakpoint
impl Sync for InstructionBreakpoint
impl Unpin for InstructionBreakpoint
impl UnwindSafe for InstructionBreakpoint
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.