Struct Breakpoint

Source
pub struct Breakpoint {
    pub id: Option<u64>,
    pub verified: bool,
    pub message: Option<String>,
    pub source: Option<Source>,
    pub line: Option<u64>,
    pub column: Option<u64>,
    pub end_line: Option<u64>,
    pub end_column: Option<u64>,
    pub instruction_reference: Option<String>,
    pub offset: Option<u64>,
    pub reason: Option<BreakpointReason>,
}
Expand description

Information about a breakpoint created in setBreakpoints, setFunctionBreakpoints, setInstructionBreakpoints, or setDataBreakpoints requests.

Fields§

§id: Option<u64>

The identifier for the breakpoint. It is needed if breakpoint events are used to update or remove breakpoints.

§verified: bool

If true, the breakpoint could be set (but not necessarily at the desired location).

§message: Option<String>

A message about the state of the breakpoint. This is shown to the user and can be used to explain why a breakpoint could not be verified.

§source: Option<Source>

The source where the breakpoint is located.

§line: Option<u64>

The start line of the actual range covered by the breakpoint.

§column: Option<u64>

Start position of the source range covered by the breakpoint. It is measured in UTF-16 code units and the client capability columnsStartAt1 determines whether it is 0- or 1-based.

§end_line: Option<u64>

The end line of the actual range covered by the breakpoint.

§end_column: Option<u64>

End position of the source range covered by the breakpoint. It is measured in UTF-16 code units and the client capability columnsStartAt1 determines whether it is 0- or 1-based. If no end line is given, then the end column is assumed to be in the start line.

§instruction_reference: Option<String>

A memory reference to where the breakpoint is set.

§offset: Option<u64>

The offset from the instruction reference. This can be negative.

§reason: Option<BreakpointReason>

A machine-readable explanation of why a breakpoint may not be verified. If a breakpoint is verified or a specific reason is not known, the adapter should omit this property. Possible values include:

  • pending: Indicates a breakpoint might be verified in the future, but the adapter cannot verify it in the current state.
  • failed: Indicates a breakpoint was not able to be verified, and the adapter does not believe it can be verified without intervention.

Trait Implementations§

Source§

impl Clone for Breakpoint

Source§

fn clone(&self) -> Breakpoint

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Breakpoint

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Breakpoint

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Breakpoint

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,