pub struct DebuggerSession { /* private fields */ }Expand description
Adapter-neutral debugger session state and typed operations.
Implementations§
Source§impl DebuggerSession
impl DebuggerSession
pub fn start( root: &Path, config: &DebugAdapterConfig, client_name: &str, timeout: Duration, ) -> DebugResult<Self>
pub fn state(&self) -> DebugSessionState
pub fn capabilities(&self) -> &Value
pub fn launch(&mut self, arguments: Value) -> DebugResult<Value>
pub fn attach(&mut self, arguments: Value) -> DebugResult<Value>
pub fn configuration_done(&mut self) -> DebugResult<Value>
pub fn restart(&mut self, arguments: Value) -> DebugResult<Value>
pub fn set_breakpoints( &mut self, path: &Path, lines: &[u64], ) -> DebugResult<Value>
pub fn set_source_breakpoints( &mut self, path: &Path, breakpoints: &[SourceBreakpoint], ) -> DebugResult<Value>
pub fn set_exception_breakpoints( &mut self, filters: &[String], ) -> DebugResult<Value>
pub fn continue_thread(&mut self, thread_id: i64) -> DebugResult<Value>
pub fn pause(&mut self, thread_id: i64) -> DebugResult<Value>
pub fn next(&mut self, thread_id: i64) -> DebugResult<Value>
pub fn step_in(&mut self, thread_id: i64) -> DebugResult<Value>
pub fn step_out(&mut self, thread_id: i64) -> DebugResult<Value>
pub fn threads(&mut self) -> DebugResult<Value>
pub fn stack_trace(&mut self, thread_id: i64) -> DebugResult<Value>
pub fn scopes(&mut self, frame_id: i64) -> DebugResult<Value>
pub fn variables(&mut self, variables_reference: i64) -> DebugResult<Value>
pub fn evaluate( &mut self, expression: &str, frame_id: Option<i64>, context: &str, ) -> DebugResult<Value>
pub fn poll_events(&mut self) -> DebugResult<Vec<DebugEvent>>
pub fn debuggee_processes(&mut self) -> DebugResult<Vec<ProcessSnapshot>>
pub fn snapshot(&mut self) -> DebugResult<DebuggerSnapshot>
pub fn disconnect(&mut self, terminate_debuggee: bool) -> DebugResult<Value>
pub fn terminate(&mut self, restart: bool) -> DebugResult<Value>
pub fn shutdown(&mut self) -> DebugResult<()>
Auto Trait Implementations§
impl !RefUnwindSafe for DebuggerSession
impl !Sync for DebuggerSession
impl !UnwindSafe for DebuggerSession
impl Freeze for DebuggerSession
impl Send for DebuggerSession
impl Unpin for DebuggerSession
impl UnsafeUnpin for DebuggerSession
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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