# 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
[](https://github.com/ryankurte/cargo-debug)
[](https://travis-ci.com/ryankurte/cargo-debug)
[](https://crates.io/crates/cargo-debug)
[](https://docs.rs/cargo-debug)
[Open Issues](https://github.com/ryankurte/cargo-debug/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.