pub struct DebugSession {
pub id: String,
pub pipeline_id: String,
pub config: DebugConfig,
pub state: DebugSessionState,
pub breakpoints: Vec<Breakpoint>,
pub watch_expressions: Vec<WatchExpression>,
pub execution_history: Vec<ExecutionStep>,
pub current_step: usize,
pub variable_inspector: VariableInspector,
pub call_stack: Vec<CallStackFrame>,
}Expand description
Individual debugging session
Fields§
§id: String§pipeline_id: String§config: DebugConfig§state: DebugSessionState§breakpoints: Vec<Breakpoint>§watch_expressions: Vec<WatchExpression>§execution_history: Vec<ExecutionStep>§current_step: usize§variable_inspector: VariableInspector§call_stack: Vec<CallStackFrame>Implementations§
Source§impl DebugSession
impl DebugSession
pub fn new(id: String, pipeline_id: String, config: DebugConfig) -> Self
Sourcepub fn add_breakpoint(&mut self, breakpoint: Breakpoint)
pub fn add_breakpoint(&mut self, breakpoint: Breakpoint)
Add a breakpoint to the session
Sourcepub fn add_watch_expression(&mut self, expression: WatchExpression)
pub fn add_watch_expression(&mut self, expression: WatchExpression)
Add a watch expression
Sourcepub fn step_next(&mut self) -> SklResult<StepResult>
pub fn step_next(&mut self) -> SklResult<StepResult>
Step through execution
Sourcepub fn continue_execution(&mut self) -> SklResult<StepResult>
pub fn continue_execution(&mut self) -> SklResult<StepResult>
Continue execution until next breakpoint
Sourcepub fn evaluate_watch_expressions(&self) -> Vec<WatchResult>
pub fn evaluate_watch_expressions(&self) -> Vec<WatchResult>
Evaluate watch expressions at current state
Sourcepub fn get_variable_values(&self) -> HashMap<String, VariableValue>
pub fn get_variable_values(&self) -> HashMap<String, VariableValue>
Get current variable values
Sourcepub fn get_call_stack(&self) -> &[CallStackFrame]
pub fn get_call_stack(&self) -> &[CallStackFrame]
Get current call stack
Auto Trait Implementations§
impl Freeze for DebugSession
impl RefUnwindSafe for DebugSession
impl Send for DebugSession
impl Sync for DebugSession
impl Unpin for DebugSession
impl UnwindSafe for DebugSession
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
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more