pub struct SourceBreakpoint {
pub line: u64,
pub column: Option<u64>,
pub condition: Option<String>,
pub hit_condition: Option<String>,
pub log_message: Option<String>,
pub mode: Option<String>,
}Expand description
Properties of a breakpoint or logpoint passed to the setBreakpoints request.
Fields§
§line: u64The source line of the breakpoint or logpoint.
column: Option<u64>Start position within source line of the breakpoint or logpoint. It is measured in UTF-16 code units and the client capability columnsStartAt1 determines whether it is 0- or 1-based.
condition: Option<String>The expression for conditional breakpoints.
It is only honored by a debug adapter if the corresponding capability supportsConditionalBreakpoints is true.
hit_condition: Option<String>The expression that controls how many hits of the breakpoint are ignored.
The debug adapter is expected to interpret the expression as needed.
The attribute is only honored by a debug adapter if the corresponding capability supportsHitConditionalBreakpoints is true.
If both this property and condition are specified, hitCondition should be evaluated only if the condition is met, and the debug adapter should stop only if both conditions are met.
log_message: Option<String>If this attribute exists and is non-empty, the debug adapter must not ‘break’ (stop)
but log the message instead. Expressions within {} are interpolated.
The attribute is only honored by a debug adapter if the corresponding capability supportsLogPoints is true.
If either hitCondition or condition is specified, then the message should only be logged if those conditions are met.
mode: Option<String>The mode of this breakpoint. If defined, this must be one of the breakpointModes the debug adapter advertised in its Capabilities.
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 more