Skip to main content

DebuggerInterface

Struct DebuggerInterface 

Source
pub struct DebuggerInterface { /* private fields */ }
Expand description

Debugger user interface

Implementations§

Source§

impl DebuggerInterface

Source

pub fn new(config: DebuggerConfig) -> Self

Create a new debugger interface

§Arguments
  • config - Configuration for the debugger interface
Source

pub fn show_welcome_message(&self)

Show welcome message

Source

pub fn display_current_state(&self, state: &DebugState)

Display current debug state

§Arguments
  • state - The current debug state to display
Source

pub fn get_user_command(&mut self) -> JitResult<DebugCommand>

Get user command from input

§Returns

The parsed debug command

Source

pub fn parse_command(&self, input: &str) -> JitResult<DebugCommand>

Parse a command string into a DebugCommand

§Arguments
  • input - The input string to parse
§Returns

The parsed debug command

Source

pub fn show_breakpoint_set(&self, location: BreakpointLocation)

Show that a breakpoint was set

Source

pub fn show_breakpoint_removed(&self, id: BreakpointId)

Show that a breakpoint was removed

Source

pub fn show_breakpoints(&self, breakpoints: &[&Breakpoint])

Show list of breakpoints

Source

pub fn show_watch_added(&self, id: WatchId, expression: &str)

Show that a watch was added

Source

pub fn show_watch_removed(&self, id: WatchId)

Show that a watch was removed

Source

pub fn show_watches(&self, watches: &[&Watch])

Show list of watch expressions

Source

pub fn show_inspection_result(&self, result: &InspectionResult)

Show inspection result

Source

pub fn show_call_stack(&self, call_stack: &CallStack)

Show call stack

Source

pub fn show_local_variables(&self, locals: &HashMap<String, DebugValue>)

Show local variables

Source

pub fn show_memory_view(&self, memory_view: &MemoryView)

Show memory view

Source

pub fn show_disassembly(&self, disassembly: &DisassemblyView)

Show disassembly

Source

pub fn show_help(&self)

Show help information

Source

pub fn show_execution_complete(&self)

Show execution complete message

Source

pub fn show_command_history(&self)

Show command history

Source

pub fn clear_screen(&self)

Clear the screen

Source

pub fn show_error(&self, error: &str)

Show error message

Source

pub fn show_warning(&self, warning: &str)

Show warning message

Source

pub fn show_info(&self, info: &str)

Show information message

Source

pub fn show_success(&self, message: &str)

Show success message

Source

pub fn set_alias(&mut self, alias: String, command: String)

Set a command alias

Source

pub fn remove_alias(&mut self, alias: &str)

Remove a command alias

Source

pub fn get_command_history(&self) -> &[String]

Get command history

Source

pub fn clear_command_history(&mut self)

Clear command history

Source

pub fn config(&self) -> &DebuggerConfig

Get configuration

Source

pub fn update_config(&mut self, config: DebuggerConfig)

Update configuration

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V