pub struct DebuggerState { /* private fields */ }Expand description
Core debugger state
Implementations§
Source§impl DebuggerState
impl DebuggerState
Sourcepub fn deactivate(&mut self)
pub fn deactivate(&mut self)
Deactivate the debugger
Sourcepub fn set_breakpoint(&mut self, bp_type: BreakpointType) -> usize
pub fn set_breakpoint(&mut self, bp_type: BreakpointType) -> usize
Set a breakpoint and return its ID
Sourcepub fn remove_breakpoint(&mut self, id: usize) -> bool
pub fn remove_breakpoint(&mut self, id: usize) -> bool
Remove a breakpoint by ID
Sourcepub fn remove_all_breakpoints(&mut self)
pub fn remove_all_breakpoints(&mut self)
Remove all breakpoints
Sourcepub fn toggle_breakpoint(&mut self, id: usize, enabled: bool) -> bool
pub fn toggle_breakpoint(&mut self, id: usize, enabled: bool) -> bool
Enable or disable a breakpoint
Sourcepub fn get_breakpoint(&self, id: usize) -> Option<&Breakpoint>
pub fn get_breakpoint(&self, id: usize) -> Option<&Breakpoint>
Get a breakpoint by ID
Sourcepub fn list_breakpoints(&self) -> Vec<&Breakpoint>
pub fn list_breakpoints(&self) -> Vec<&Breakpoint>
List all breakpoints
Sourcepub fn set_execution_mode(&mut self, mode: ExecutionMode)
pub fn set_execution_mode(&mut self, mode: ExecutionMode)
Set the execution mode
Sourcepub fn execution_mode(&self) -> &ExecutionMode
pub fn execution_mode(&self) -> &ExecutionMode
Get the current execution mode
Sourcepub fn set_step_over_depth(&mut self, depth: usize)
pub fn set_step_over_depth(&mut self, depth: usize)
Set the step over depth
Sourcepub fn clear_step_over_depth(&mut self)
pub fn clear_step_over_depth(&mut self)
Clear the step over depth
Sourcepub fn update_location(&mut self, file: String, line: usize)
pub fn update_location(&mut self, file: String, line: usize)
Update current location
Sourcepub fn current_location(&self) -> Option<&(String, usize)>
pub fn current_location(&self) -> Option<&(String, usize)>
Get current location
Sourcepub fn should_pause_at_function(&mut self, func_name: &str) -> bool
pub fn should_pause_at_function(&mut self, func_name: &str) -> bool
Check if a function breakpoint should trigger
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DebuggerState
impl RefUnwindSafe for DebuggerState
impl Send for DebuggerState
impl Sync for DebuggerState
impl Unpin for DebuggerState
impl UnwindSafe for DebuggerState
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