pub struct BreakpointManager { /* private fields */ }Expand description
Breakpoint manager
Implementations§
Source§impl BreakpointManager
impl BreakpointManager
Sourcepub fn set_breakpoint(
&mut self,
location: BreakpointLocation,
) -> JitResult<BreakpointId>
pub fn set_breakpoint( &mut self, location: BreakpointLocation, ) -> JitResult<BreakpointId>
Set a breakpoint at the specified location
§Arguments
location- The location where the breakpoint should be set
§Returns
The ID of the newly created breakpoint
§Examples
use torsh_jit::debugger::{BreakpointManager, BreakpointLocation};
use torsh_jit::NodeId;
let mut manager = BreakpointManager::new();
let location = BreakpointLocation::GraphNode(NodeId::new(0));
let id = manager.set_breakpoint(location).unwrap();Sourcepub fn set_conditional_breakpoint(
&mut self,
location: BreakpointLocation,
condition: String,
) -> JitResult<BreakpointId>
pub fn set_conditional_breakpoint( &mut self, location: BreakpointLocation, condition: String, ) -> JitResult<BreakpointId>
Sourcepub fn remove_breakpoint(&mut self, id: BreakpointId) -> JitResult<()>
pub fn remove_breakpoint(&mut self, id: BreakpointId) -> JitResult<()>
Sourcepub fn enable_breakpoint(&mut self, id: BreakpointId) -> JitResult<()>
pub fn enable_breakpoint(&mut self, id: BreakpointId) -> JitResult<()>
Sourcepub fn disable_breakpoint(&mut self, id: BreakpointId) -> JitResult<()>
pub fn disable_breakpoint(&mut self, id: BreakpointId) -> JitResult<()>
Sourcepub fn list_breakpoints(&self) -> Vec<&Breakpoint>
pub fn list_breakpoints(&self) -> Vec<&Breakpoint>
Sourcepub fn get_breakpoint(&self, id: BreakpointId) -> Option<&Breakpoint>
pub fn get_breakpoint(&self, id: BreakpointId) -> Option<&Breakpoint>
Sourcepub fn is_breakpoint_at(&self, location: &ExecutionLocation) -> bool
pub fn is_breakpoint_at(&self, location: &ExecutionLocation) -> bool
Sourcepub fn hit_breakpoints_at(&mut self, location: &ExecutionLocation) -> usize
pub fn hit_breakpoints_at(&mut self, location: &ExecutionLocation) -> usize
Sourcepub fn clear_all_breakpoints(&mut self)
pub fn clear_all_breakpoints(&mut self)
Clear all breakpoints
Sourcepub fn enabled_count(&self) -> usize
pub fn enabled_count(&self) -> usize
Get the number of enabled breakpoints
Sourcepub fn get_breakpoints_at(
&self,
location: &BreakpointLocation,
) -> Vec<&Breakpoint>
pub fn get_breakpoints_at( &self, location: &BreakpointLocation, ) -> Vec<&Breakpoint>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BreakpointManager
impl RefUnwindSafe for BreakpointManager
impl Send for BreakpointManager
impl Sync for BreakpointManager
impl Unpin for BreakpointManager
impl UnsafeUnpin for BreakpointManager
impl UnwindSafe for BreakpointManager
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