pub enum Commands {
Show 29 variants
Start {
program: PathBuf,
args: Vec<String>,
adapter: Option<String>,
stop_on_entry: bool,
initial_breakpoints: Vec<String>,
},
Attach {
pid: u32,
adapter: Option<String>,
},
Breakpoint(BreakpointCommands),
Break {
location: String,
condition: Option<String>,
},
Continue,
Next,
Step,
Finish,
Pause,
Backtrace {
limit: usize,
locals: bool,
},
Locals,
Print {
expression: String,
},
Eval {
expression: String,
},
Context {
lines: usize,
},
Threads,
Thread {
id: Option<i64>,
},
Frame {
number: Option<usize>,
},
Up,
Down,
Await {
timeout: u64,
},
Output {
follow: bool,
tail: Option<usize>,
clear: bool,
},
Status,
Stop,
Detach,
Restart,
Logs {
lines: usize,
follow: bool,
clear: bool,
},
Daemon,
Setup {
debugger: Option<String>,
version: Option<String>,
list: bool,
check: bool,
auto_detect: bool,
uninstall: bool,
path: bool,
force: bool,
dry_run: bool,
json: bool,
},
Test {
path: PathBuf,
verbose: bool,
},
}Variants§
Start
Start debugging a program
Fields
Attach
Attach to a running process
Fields
Breakpoint(BreakpointCommands)
Breakpoint management
Break
Shorthand for ‘breakpoint add’
Fields
Continue
Continue execution
Next
Step over (execute current line, step over function calls)
Step
Step into (execute current line, step into function calls)
Finish
Step out (run until current function returns)
Pause
Pause execution
Backtrace
Print stack trace
Fields
Locals
Show local variables in current frame
Print/evaluate expression
Eval
Evaluate expression (can have side effects)
Context
Show current position with source context and variables
Threads
List all threads
Thread
Switch to a specific thread
Frame
Navigate to a specific stack frame
Up
Move up the stack (to caller)
Down
Move down the stack (toward current frame)
Await
Wait for next stop event (breakpoint, step completion, etc.)
Output
Get debuggee stdout/stderr output
Fields
Status
Get daemon/session status
Stop
Stop debugging (terminates debuggee and session)
Detach
Detach from process (process keeps running)
Restart
Restart program (re-launch with same arguments)
Logs
View daemon logs (for debugging)
Fields
Daemon
[Hidden] Run in daemon mode - spawned automatically
Setup
Install and manage debug adapters
Fields
Test
Execute a test scenario defined in a YAML file
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
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