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
impl Clone for Breakpoint
Source§fn clone(&self) -> Breakpoint
fn clone(&self) -> Breakpoint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more