pub struct Session { /* private fields */ }Expand description
A driven debug session: the story, its breakpoints, and the sources needed to report positions in source terms.
Implementations§
Source§impl Session
impl Session
pub fn new(program: Arc<Program>, line_tables: Vec<Vec<LineEntry>>) -> Self
Sourcepub fn transcript(&self) -> &str
pub fn transcript(&self) -> &str
The transcript so far.
Sourcepub fn current_position(&self) -> Option<(String, u32)>
pub fn current_position(&self) -> Option<(String, u32)>
The file and 1-based line the flow is stopped on, or None when
there is no source position — not started, terminal, or parked.
Public so a host (the CLI’s list, a UI’s current-line highlight)
can ask without re-deriving it from a transcript.
Auto Trait Implementations§
impl !RefUnwindSafe for Session
impl !Send for Session
impl !Sync for Session
impl !UnwindSafe for Session
impl Freeze for Session
impl Unpin for Session
impl UnsafeUnpin for Session
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