#debugging #cargo #subcommand #output #launch #file #command

app cargo-debug

a subcommand for cargo to launch a debugger with the generated output file

3 releases (breaking)

0.3.0 Mar 29, 2019
0.2.0 Mar 29, 2019
0.1.0 Mar 27, 2019

#32 in #launch

23 downloads per month

GPL-3.0-or-later

11KB
166 lines

cargo-debug

A subcommand for cargo that launches the specified debugger on the output of a provided subcommand.

Usage

Install with cargo install cargo-debug

  • cargo debug test to run the test binary in a debugger
  • cargo debug --debugger=lldb build to run the output binary in lldb
  • cargo debug test -- --all to run the cargo test with the --all argument
  • cargo debug test -- -- --ignored to run the test binary in the debugger with the --ignored argument
  • cargo debug --command-file=test.cmd build to run the build binary in a debugger with the specified command file

Status

GitHub tag Build Status Crates.io Docs.rs

Open Issues

TODO: this currently only works with projects with a single output file, a filter should be added where more that one output is discovered.

Dependencies

~5–15MB
~165K SLoC