pub struct DebuggerInterface { /* private fields */ }Expand description
Debugger user interface
Implementations§
Source§impl DebuggerInterface
impl DebuggerInterface
Sourcepub fn new(config: DebuggerConfig) -> Self
pub fn new(config: DebuggerConfig) -> Self
Sourcepub fn show_welcome_message(&self)
pub fn show_welcome_message(&self)
Show welcome message
Sourcepub fn display_current_state(&self, state: &DebugState)
pub fn display_current_state(&self, state: &DebugState)
Sourcepub fn get_user_command(&mut self) -> JitResult<DebugCommand>
pub fn get_user_command(&mut self) -> JitResult<DebugCommand>
Sourcepub fn parse_command(&self, input: &str) -> JitResult<DebugCommand>
pub fn parse_command(&self, input: &str) -> JitResult<DebugCommand>
Sourcepub fn show_breakpoint_set(&self, location: BreakpointLocation)
pub fn show_breakpoint_set(&self, location: BreakpointLocation)
Show that a breakpoint was set
Sourcepub fn show_breakpoint_removed(&self, id: BreakpointId)
pub fn show_breakpoint_removed(&self, id: BreakpointId)
Show that a breakpoint was removed
Sourcepub fn show_breakpoints(&self, breakpoints: &[&Breakpoint])
pub fn show_breakpoints(&self, breakpoints: &[&Breakpoint])
Show list of breakpoints
Sourcepub fn show_watch_added(&self, id: WatchId, expression: &str)
pub fn show_watch_added(&self, id: WatchId, expression: &str)
Show that a watch was added
Sourcepub fn show_watch_removed(&self, id: WatchId)
pub fn show_watch_removed(&self, id: WatchId)
Show that a watch was removed
Sourcepub fn show_watches(&self, watches: &[&Watch])
pub fn show_watches(&self, watches: &[&Watch])
Show list of watch expressions
Sourcepub fn show_inspection_result(&self, result: &InspectionResult)
pub fn show_inspection_result(&self, result: &InspectionResult)
Show inspection result
Sourcepub fn show_call_stack(&self, call_stack: &CallStack)
pub fn show_call_stack(&self, call_stack: &CallStack)
Show call stack
Sourcepub fn show_local_variables(&self, locals: &HashMap<String, DebugValue>)
pub fn show_local_variables(&self, locals: &HashMap<String, DebugValue>)
Show local variables
Sourcepub fn show_memory_view(&self, memory_view: &MemoryView)
pub fn show_memory_view(&self, memory_view: &MemoryView)
Show memory view
Sourcepub fn show_disassembly(&self, disassembly: &DisassemblyView)
pub fn show_disassembly(&self, disassembly: &DisassemblyView)
Show disassembly
Sourcepub fn show_execution_complete(&self)
pub fn show_execution_complete(&self)
Show execution complete message
Sourcepub fn show_command_history(&self)
pub fn show_command_history(&self)
Show command history
Sourcepub fn clear_screen(&self)
pub fn clear_screen(&self)
Clear the screen
Sourcepub fn show_error(&self, error: &str)
pub fn show_error(&self, error: &str)
Show error message
Sourcepub fn show_warning(&self, warning: &str)
pub fn show_warning(&self, warning: &str)
Show warning message
Sourcepub fn show_success(&self, message: &str)
pub fn show_success(&self, message: &str)
Show success message
Sourcepub fn remove_alias(&mut self, alias: &str)
pub fn remove_alias(&mut self, alias: &str)
Remove a command alias
Sourcepub fn get_command_history(&self) -> &[String]
pub fn get_command_history(&self) -> &[String]
Get command history
Sourcepub fn clear_command_history(&mut self)
pub fn clear_command_history(&mut self)
Clear command history
Sourcepub fn config(&self) -> &DebuggerConfig
pub fn config(&self) -> &DebuggerConfig
Get configuration
Sourcepub fn update_config(&mut self, config: DebuggerConfig)
pub fn update_config(&mut self, config: DebuggerConfig)
Update configuration
Auto Trait Implementations§
impl Freeze for DebuggerInterface
impl RefUnwindSafe for DebuggerInterface
impl Send for DebuggerInterface
impl Sync for DebuggerInterface
impl Unpin for DebuggerInterface
impl UnsafeUnpin for DebuggerInterface
impl UnwindSafe for DebuggerInterface
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