pub enum Command {
Show 31 variants
Start {
program: PathBuf,
args: Vec<String>,
adapter: Option<String>,
stop_on_entry: bool,
},
Attach {
pid: u32,
adapter: Option<String>,
},
Detach,
Stop,
Restart,
Status,
BreakpointAdd {
location: BreakpointLocation,
condition: Option<String>,
hit_count: Option<u32>,
},
BreakpointRemove {
id: Option<u32>,
all: bool,
},
BreakpointList,
BreakpointEnable {
id: u32,
},
BreakpointDisable {
id: u32,
},
Continue,
Next,
StepIn,
StepOut,
Pause,
StackTrace {
thread_id: Option<i64>,
limit: usize,
},
Locals {
frame_id: Option<i64>,
},
Evaluate {
expression: String,
frame_id: Option<i64>,
context: EvaluateContext,
},
Scopes {
frame_id: i64,
},
Variables {
reference: i64,
},
Threads,
ThreadSelect {
id: i64,
},
FrameSelect {
number: usize,
},
FrameUp,
FrameDown,
Context {
lines: usize,
},
Await {
timeout_secs: u64,
},
GetOutput {
tail: Option<usize>,
clear: bool,
},
SubscribeOutput,
Shutdown,
}Expand description
Commands that can be sent from CLI to daemon
Variants§
Start
Start debugging a program
Attach
Attach to a running process
Detach
Detach from process (keeps it running)
Stop
Stop debugging (terminates debuggee)
Restart
Restart program with same arguments
Status
Get session status
BreakpointAdd
Add a breakpoint
BreakpointRemove
Remove a breakpoint
BreakpointList
List all breakpoints
BreakpointEnable
Enable a breakpoint
BreakpointDisable
Disable a breakpoint
Continue
Continue execution
Next
Step over (next line, skip function calls)
StepIn
Step into (next line, enter function calls)
StepOut
Step out (run until function returns)
Pause
Pause execution
StackTrace
Get stack trace
Locals
Get local variables
Evaluate
Evaluate expression
Scopes
Get scopes for a frame
Variables
Get variables in a scope
Threads
List all threads
ThreadSelect
Switch to thread
FrameSelect
Select stack frame
FrameUp
Move up the stack (to caller)
FrameDown
Move down the stack (toward current frame)
Context
Get current position with source context
Await
Wait for next stop event
GetOutput
Get buffered output
SubscribeOutput
Subscribe to output events (for –follow)
Shutdown
Shutdown the daemon
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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
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>
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>
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